private void viewSummaryMenuItem_Click(object sender, System.EventArgs e) { if (clrProfiler.lastLogResult != null) { string scenario = clrProfiler.log.fileName; SummaryForm summaryForm = new SummaryForm(clrProfiler.log, clrProfiler.lastLogResult, scenario); summaryForm.Show(); } }
private void tsOrder_Click(object sender, EventArgs e) { switch ((sender as ToolStripMenuItem).Name) { case "tsOrder": if (!OrderForm.Created) { OrderForm.Show(dockPanel1, DockState.Document); } OrderForm.Activate(); break; case "tsCancel": if (!CancelForm.Created) { CancelForm.Show(dockPanel1, DockState.Document); } CancelForm.Activate(); break; case "tsMatch": if (!MatchForm.Created) { MatchForm.Show(dockPanel1, DockState.Document); } MatchForm.Activate(); break; case "tsError": if (!ErrForm.Created) { ErrForm.Show(dockPanel1, DockState.Document); } ErrForm.Activate(); break; case "tsSummary": if (!SummaryForm.Created) { SummaryForm.Show(dockPanel1, DockState.Document); } SummaryForm.Activate(); break; case "tsPosition": if (!PositionForm.Created) { PositionForm.Show(dockPanel1, DockState.Document); } PositionForm.Activate(); break; } }
private void สรปประจำวนToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form child in MdiChildren) { child.Close(); } SummaryForm mmr = new SummaryForm(); mmr.MdiParent = this; mmr.Show(); }
private void LoadEntities(bool selectSolutions = false) { if (selectSolutions) { var dialog = new SolutionPickerDialog(Service); if (dialog.ShowDialog(this) == DialogResult.OK) { _solutionsList = dialog.SelectedSolutions; } else { return; } } WorkAsync(new WorkAsyncInfo { Message = "Retrieving metadata...", Work = (bw, e) => { var mm = new MetadataManager(Service); var emds = mm.GetEntities(_solutionsList, _settings); var checkList = new List <CheckData>(); checkList.Add(new CheckData { RegExp = _settings.AllAttributesRegExp, Type = "All" }); checkList.AddRange(_sForm.AttributeDetails); foreach (var cd in checkList) { cd.CheckSchemaName = _settings.NameToCompare == NameToCompare.Schema; cd.Analyse(emds, _settings); } e.Result = checkList; }, PostWorkCallBack = e => { var checkList = (List <CheckData>)e.Result; _summaryForm.Settings = _settings; _summaryForm.DisplayResults(checkList); _summaryForm.Show(dpMain, DockState.Document); tsbRunAnalysisAgain.Visible = true; } }); }