pocorall.SCM_Notifier.MainForm.menuItemDelete_Click C# (CSharp) Метод

menuItemDelete_Click() приватный Метод

private menuItemDelete_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        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();
            }
        }
MainForm