private void removeListToolStripMenuItem_Click(object sender, EventArgs e) { if (listBoxWatchLists.SelectedItem != null) { string list = listBoxWatchLists.SelectedItem.ToString(); WatchListManager.RemoveList(list); FillListBoxWatchLists(); listBoxWatchLists.SelectedItem = null; } }
private void removeToolStripMenuItem1_Click(object sender, EventArgs e) { if (_activeWatchList != null) { if (MessageBox.Show("Are you sure you want to remove " + _activeWatchList, "", MessageBoxButtons.YesNo) == DialogResult.Yes) { WatchListManager.RemoveList(_activeWatchList); } } }