コード例 #1
0
        private async void metroButtonInit_Click(object sender, EventArgs e)
        {
            local_idx = 0;
            baseObj.szLocalFiles.Clear();
            baseObj.szLocalChecksum.Clear();

            metroButtonDetect.Enabled = false;
            metroButtonExport.Enabled = false;
            metroButtonTest.Enabled   = false;

            waitForm.Show(this);

            var detectProgress = new Progress <ProgressReport>();

            listBoxLocal.Items.Clear();

            await ProcessDetect();

            foreach (var item in baseObj.szLocalFiles)
            {
                listBoxLocal.Items.Add(item);
            }

            metroButtonDetect.Enabled = true;
            metroButtonExport.Enabled = true;
            metroButtonTest.Enabled   = true;

            waitForm.Close();
            //InitializeLocal();
        }
コード例 #2
0
        private async void F11()
        {
            if (Chk_flg)
            {
                WaitWnd.WaitWndFun waitForm = new WaitWnd.WaitWndFun("Searching.....Please Wait!");
                waitForm.Show(this);

                await Detail();

                waitForm.Close();
                btnF11_Detail.Focus();
            }
        }
コード例 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text   = "";
            button1.Enabled = false;
            waitForm.Show(this);

            string[] strs = new string[1000];
            progressBar1.Value   = 0;
            progressBar1.Maximum = 1000;
            for (int i = 0; i < 1000; i++)
            {
                strs[i] = i.ToString();
            }
            foreach (string num in strs)
            {
                textBox1.Text += num + ";";
                textBox1.Refresh();

                progressBar1.Value++;
                progressBar1.Refresh();
            }
            button1.Enabled = true;
            waitForm.Close();
        }