Exemplo n.º 1
0
 public void EditList()
 {
     using (var manageViewsForm = new ManageViewsForm(GetViewContext(false)))
     {
         manageViewsForm.ShowDialog(this);
     }
 }
Exemplo n.º 2
0
 public void ManageViews(Control owner)
 {
     using (var manageViewsForm = new ManageViewsForm(this))
     {
         FormUtil.ShowDialog(owner, manageViewsForm);
     }
 }
Exemplo n.º 3
0
 public void ManageViews(Control owner)
 {
     using (var manageViewsForm = new ManageViewsForm(this))
     {
         manageViewsForm.ShowDialog(owner.TopLevelControl);
     }
 }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        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);
            }
        }