Beispiel #1
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     Cursor.Show();
     try
     {
         _presenter.Initialize();
         _presenter.LoadServers(true);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
         Cursor.Hide();
     }
 }
Beispiel #2
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            if (!_isLoaded)
            {
                _isLoaded = true;

                Cursor.Current = Cursors.WaitCursor;

                try
                {
                    _presenter.Initialize();
                    _presenter.LoadServers(true);
                }
                finally
                {
                    Cursor.Current = Cursors.Default;
                }
            }
        }