Exemplo n.º 1
0
        public static void ShowMe(Form owner, string message)
        {
            owner.UseWaitCursor = true;

            if (_Instance == null || _Instance.IsDisposed) _Instance = new frmWaiting();
            _Instance.Owner = owner;
            _Instance.lblMsg.Text = String.IsNullOrEmpty(message) ? _Instance.lblMsg.Text : message;
            _Instance.lblMsg.Invalidate();
            _Instance.Show();

            Application.DoEvents();
        }
Exemplo n.º 2
0
        public static void HideMe(Form owner)
        {
            owner.UseWaitCursor = false;
            owner.Enabled = true;

            if (_Instance != null)
            {
                _Instance.Close();
                _Instance = null;
            }

            Application.DoEvents();
        }
Exemplo n.º 3
0
        public static void HideMe(Form owner)
        {
            owner.UseWaitCursor = false;
            owner.Enabled       = true;

            if (_Instance != null)
            {
                _Instance.Close();
                _Instance = null;
            }

            Application.DoEvents();
        }
Exemplo n.º 4
0
        public static void ShowMe(Form owner, string message)
        {
            owner.UseWaitCursor = true;

            if (_Instance == null || _Instance.IsDisposed)
            {
                _Instance = new frmWaiting();
            }
            _Instance.Owner       = owner;
            _Instance.lblMsg.Text = String.IsNullOrEmpty(message) ? _Instance.lblMsg.Text : message;
            _Instance.lblMsg.Invalidate();
            _Instance.Show();

            Application.DoEvents();
        }
Exemplo n.º 5
0
 private void frmWaiting_FormClosed(object sender, FormClosedEventArgs e)
 {
     _Instance = null;
 }
Exemplo n.º 6
0
 private void frmWaiting_FormClosed(object sender, FormClosedEventArgs e)
 {
     _Instance = null;
 }