示例#1
0
文件: Form1.cs 项目: code-mtnit/WPFSM
        private void btnStart_Click(object sender, EventArgs e)
        {
            frm = new WaitForm(Counter);
            frm.Start();
            //frm = new WaitForm();
            //if (textBox1.Text != "")
            //{
            //    frm.Start();

            //    frm.startW(int.Parse(textBox1.Text));
            //    Counter();
            //    //  frm.Stop();
            //    frm.stopW();
            //    //frm.startW(int.Parse(textBox1.Text));
            //}
            //else
            //{


            //    frm.startW();
            //    Counter();
            //  //  frm.Stop();
            //     frm.stopW();
            //}
        }
示例#2
0
 public static WaitForm getInstance()
 {
     if (form == null)
     {
         form = new WaitForm();
         form.StartPosition = FormStartPosition.CenterScreen;
         form.ShowInTaskbar = false;
         form.ControlBox    = false;
         // form.TransparencyKey = Color.White;
         form.TopMost = true;
         form.BringToFront();
     }
     // form.StartPosition = FormStartPosition.CenterScreen;
     return(form);
 }
示例#3
0
 public void Start()
 {
     Bw.RunWorkerAsync();
     newLoading = new WaitForm();
     newLoading.ShowDialog();
 }