void bm_DoErr(string file, int line, string description) { SelectedFileEventArgs e = new SelectedFileEventArgs(file,false); m_solutionExplorer_SelectedFile(null, e); ((EditorWindow)dockPanel.ActiveDocument).highlighterror(line); m_outputWindow.appendmsg(String.Format("ERROR: {0} {1} {2}", file, line+1, description)); }
void bm_DoErr(string file, int line, string description) { SelectedFileEventArgs e = new SelectedFileEventArgs(file, false); m_solutionExplorer_SelectedFile(null, e); ((EditorWindow)dockPanel.ActiveDocument).highlighterror(line); m_outputWindow.appendmsg(String.Format("ERROR: {0} {1} {2}", file, line + 1, description)); }
public void OnUserSelectedFile(object sender, SelectedFileEventArgs e) { try { PersonRecognizer.Instance.LoadTrainedFaces(); } catch (Exception ex) { MessageBox.Show("Recognition is not working! " + ex); } try { PersonRecognizer.Instance.StartCapture((frame) => _view.CurrentVideoFrame = frame, fromVideo: true, CurrentVideoFile: e.SelectedFileName); } catch (Exception ex) { MessageBox.Show("Failed to start video! " + ex); } }
void m_solutionExplorer_SelectedFile(object sender, SelectedFileEventArgs e) { //FIXME better document tracking required, //if you undock the document its not in dockPanel anymore foreach (IDockContent d in dockPanel.Documents) { //Only one solution supported at a time currently if (d.GetType() == typeof(SolutionSettings) && e.rootnode == true) { SolutionSettings ss = (SolutionSettings)d; ss.Show(); return; } if (d.GetType() == typeof(EditorWindow) && e.rootnode == false) { EditorWindow ew = (EditorWindow)d; if (ew.filename == e.name) { ew.Show(); return; } } } if (e.rootnode == true) { SolutionSettings ss2 = new SolutionSettings(solution); ss2.MdiParent = this; ss2.DockPanel = this.dockPanel; ss2.Show(); return; } else { loadfile(e.name); } }
void m_solutionExplorer_SelectedFile(object sender, SelectedFileEventArgs e) { //FIXME better document tracking required, //if you undock the document its not in dockPanel anymore foreach (IDockContent d in dockPanel.Documents) { //Only one solution supported at a time currently if (d.GetType() == typeof(SolutionSettings) && e.rootnode == true) { SolutionSettings ss = (SolutionSettings)d; ss.Show(); return; } if (d.GetType() == typeof(EditorWindow) && e.rootnode == false) { EditorWindow ew = (EditorWindow)d; if (ew.filename == e.name) { ew.Show(); return; } } } if(e.rootnode==true) { SolutionSettings ss2 = new SolutionSettings(solution); ss2.MdiParent = this; ss2.DockPanel = this.dockPanel; ss2.Show(); return; } else { loadfile(e.name); } }