// ---------------------------------------------------------------------------------------- private void Parent_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var file = treeView1.SelectedItem as CodeFile; if (file != null) { _codeEditorView.OpenTab(file, true); } }
private void DoActivate() { CodeFile file = listView.SelectedItem as CodeFile; if (file != null) { _codeEditor.OpenTab(file, true); DialogResult = true; } }