private void MenuItem_Exclude_Click(object sender, RoutedEventArgs e) { var file = treeView1.SelectedItem as CodeFile; if (file != null) { _codeEditorView.RemoveFromTabs(file); CodeProjectManager.Instance.Current.RemoveFile(file); } }
private void CloseButton_Click(object sender, RoutedEventArgs e) { // Удаляем все выделенные while (listView.SelectedItems.Count > 0) { _codeEditor.RemoveFromTabs(listView.SelectedItem as CodeFile); } }