public void EditList() { using (var manageViewsForm = new ManageViewsForm(GetViewContext(false))) { manageViewsForm.ShowDialog(this); } }
public void ManageViews(Control owner) { using (var manageViewsForm = new ManageViewsForm(this)) { FormUtil.ShowDialog(owner, manageViewsForm); } }
public void ManageViews(Control owner) { using (var manageViewsForm = new ManageViewsForm(this)) { manageViewsForm.ShowDialog(owner.TopLevelControl); } }
public void EditReportList() { var dataSchema = new SkylineDataSchema(DocumentContainer, SkylineDataSchema.GetLocalizedSchemaLocalizer()); var viewContext = new DocumentGridViewContext(dataSchema) { EnablePreview = true }; using (var manageViewsForm = new ManageViewsForm(viewContext)) { manageViewsForm.ShowDialog(this); } }
protected void TestDocumentGridManageViewsImport() { DocumentGridForm documentGridForm = ShowDialog <DocumentGridForm>(() => SkylineWindow.ShowDocumentGrid(true)); foreach (var reportInfo in ListTestReportInfos()) { Settings.Default.PersistedViews.Clear(); ManageViewsForm manageViewsForm = ShowDialog <ManageViewsForm>(documentGridForm.ManageViews); string reportInfoPath = reportInfo.Path; RunUI(() => manageViewsForm.ImportViews(reportInfoPath)); VerifyReportsImported(PersistedViews.MainGroup, reportInfo); OkDialog(manageViewsForm, manageViewsForm.Close); } }