private void connectButton_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; try { _presenter.Connect(serverListBox.SelectedItems[0].Text, ""); } finally { Cursor.Current = Cursors.Default; } }
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(); } }