protected override void Run () { CodeMetricsView view = new CodeMetricsView (); foreach (WorkspaceItem it in IdeApp.Workspace.Items) view.Add (it); IdeApp.Workbench.OpenDocument (view, true); view.Run (); }
protected override void Run() { CodeMetricsView view = new CodeMetricsView(); foreach (WorkspaceItem it in IdeApp.Workspace.Items) { view.Add(it); } IdeApp.Workbench.OpenDocument(view, true); view.Run(); }
protected void OnShowMetrics() { CodeMetricsView view = new CodeMetricsView(); ProjectFile file = CurrentNode.DataItem as ProjectFile; if (file != null) { view.Add(file); } ProjectFolder folder = CurrentNode.DataItem as ProjectFolder; SolutionFolder combine = CurrentNode.DataItem as SolutionFolder; if (combine != null) { view.Add(combine); } Solution solution = CurrentNode.DataItem as Solution; if (solution != null) { view.Add(solution); } Project project = CurrentNode.DataItem as Project; if (project != null) { view.Add(project); } IdeApp.Workbench.OpenDocument(view, true); view.Run(); }
protected void OnShowMetrics () { CodeMetricsView view = new CodeMetricsView (); ProjectFile file = CurrentNode.DataItem as ProjectFile; if (file != null) view.Add (file); ProjectFolder folder = CurrentNode.DataItem as ProjectFolder; SolutionFolder combine = CurrentNode.DataItem as SolutionFolder; if (combine != null) view.Add (combine); Solution solution = CurrentNode.DataItem as Solution; if (solution != null) view.Add (solution); Project project = CurrentNode.DataItem as Project; if (project != null) view.Add (project); IdeApp.Workbench.OpenDocument (view, true); view.Run (); }