资源简介

C# WindowsForms简单程序;  生成一组双色球随机号码。

入门级窗口程序,告别枯燥的DOS界面。

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;

namespace 双色球WindowsForms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender EventArgs e)
        {
            int[] red = new int[6];
            Random s = new Random();
            //从1~33中生成6个不重复的随机数红球;
            for (int i = 0; i < 6; i++)
            {
                int a = s.Next(1 34) j;
                for (j = 0; j < i; j++)
                {
                    if (a == red[j])
                    {
                        i--;
                        break;
                    }
                }
                red[j] = a;
            }
            //为生成的红球按从小到大排序;
            

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     41984  2019-09-05 10:50  双色球WindowsForms\.vs\双色球WindowsForms\v15\.suo

     文件          0  2019-09-04 14:29  双色球WindowsForms\.vs\双色球WindowsForms\v15\Server\sqlite3\db.lock

     文件     593920  2019-09-04 16:09  双色球WindowsForms\.vs\双色球WindowsForms\v15\Server\sqlite3\storage.ide

     文件      32768  2019-09-05 10:36  双色球WindowsForms\.vs\双色球WindowsForms\v15\Server\sqlite3\storage.ide-shm

     文件    4124152  2019-09-05 10:50  双色球WindowsForms\.vs\双色球WindowsForms\v15\Server\sqlite3\storage.ide-wal

     文件        189  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\App.config

     文件     192512  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\bin\Debug\双色球WindowsForms.exe

     文件        189  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\bin\Debug\双色球WindowsForms.exe.config

     文件      32256  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\bin\Debug\双色球WindowsForms.pdb

     文件     259584  2019-09-05 10:39  双色球WindowsForms\双色球WindowsForms\bin\Release\双色球WindowsForms.exe

     文件        189  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\bin\Release\双色球WindowsForms.exe.config

     文件      30208  2019-09-05 10:39  双色球WindowsForms\双色球WindowsForms\bin\Release\双色球WindowsForms.pdb

     文件      67646  2019-09-04 17:58  双色球WindowsForms\双色球WindowsForms\bitbug_favicon.ico

     文件       2053  2019-09-05 10:39  双色球WindowsForms\双色球WindowsForms\Form1.cs

     文件      11507  2019-09-05 10:39  双色球WindowsForms\双色球WindowsForms\Form1.Designer.cs

     文件     275408  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\Form1.resx

     文件       1443  2019-09-04 16:05  双色球WindowsForms\双色球WindowsForms\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7317  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件         42  2019-09-04 14:29  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.csproj.CoreCompileInputs.cache

     文件       1295  2019-09-04 17:42  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.csproj.FileListAbsolute.txt

     文件       1012  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.csproj.GenerateResource.cache

     文件      11490  2019-09-04 16:05  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.csprojAssemblyReference.cache

     文件     192512  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.exe

     文件     180463  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.Form1.resources

     文件      32256  2019-09-04 17:47  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.pdb

     文件        180  2019-09-04 14:41  双色球WindowsForms\双色球WindowsForms\obj\Debug\双色球WindowsForms.Properties.Resources.resources

     文件       1605  2019-09-05 10:36  双色球WindowsForms\双色球WindowsForms\obj\Release\DesignTimeResolveAssemblyReferences.cache

............此处省略40个文件信息

评论

共有 条评论