private void menuItemDelete_Click(object sender, EventArgs e)
{
if (listViewFolders.SelectedIndices.Count > 0)
{
int selectedIndex = listViewFolders.SelectedIndices[0];
string path = folders[listViewFolders.SelectedIndices[0]].Path;
if (MessageBox.Show ("Are you sure to remove " + path + " from list?", "SCM Notifier", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
return;
folders.RemoveAt (selectedIndex);
listViewFolders.Items.RemoveAt (selectedIndex);
UpdateListViewFolderNames();
newNonUpdatedFolders.Clear();
Config.SaveSvnFolders (folders);
UpdateTray (true);
BeginUpdateFolderStatuses();
}
}