Пример #1
0
        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();
 }