コード例 #1
0
        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);
            }
        }
コード例 #2
0
 private void CloseButton_Click(object sender, RoutedEventArgs e)
 {
     // Удаляем все выделенные
     while (listView.SelectedItems.Count > 0)
     {
         _codeEditor.RemoveFromTabs(listView.SelectedItem as CodeFile);
     }
 }