示例#1
0
        private void connectButton_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            try
            {
                _presenter.Connect(serverListBox.SelectedItems[0].Text, "");
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
示例#2
0
        private void connectMenuItem_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            Cursor.Show();

            try
            {
                _presenter.Connect(serverListBox.Items[serverListBox.SelectedIndices[0]].Text, "");
            }
            finally
            {
                Cursor.Current = Cursors.Default;
                Cursor.Hide();
            }
        }