Exemplo n.º 1
0
 private void RemoveWait(Control parentCtrl)
 {
     Invoke(new Action(() =>
     {
         parentCtrl.Controls.Remove(lodingWidow);
         lodingWidow = null;
     }));
 }
Exemplo n.º 2
0
        private void ShowWait(Control parentCtrl)
        {
            Invoke(new Action(() =>
            {
                lodingWidow = new LodingWidow();

                //lodingWidow.Location = new Point((parentCtrl.Width - lodingWidow.Width) / 2 , (parentCtrl.Height - lodingWidow.Height) / 2);
                //lodingWidow.Location = new Point(500, 500);
                lodingWidow.BackColor     = Color.Red;
                lodingWidow.StartPosition = FormStartPosition.CenterParent;
                lodingWidow.TopLevel      = false;
                lodingWidow.Show();
                parentCtrl.Controls.Add(lodingWidow);
            }));
        }