public override void Execute()
        {
            editorControl = new PackageDeploymentView();
            onLogHandler  = (ss, ee) => { editorControl.ReportProgress(ee.Message, 1, 10); };

            var model = new NuGetPackageDeploymentViewModel
            {
                SharePointConnection = AppService.ActiveSharePointConnection,
                NuGetPackage         = Data
            };

            editorControl.ViewModel = model;

            ShFormUtilsEx.ShowModal(new ShowModalExOptions
            {
                Control        = editorControl,
                OnControlSetup = (control) =>
                {
                    control.OkButton.Text = "Deploy";
                    control.TsEnableOkButton(AppService.ActiveSharePointConnection != null);
                },
                OnOk = (s, e) =>
                {
                    e.Cancel = true;
                    PerformPackageDeploymentAsync(e, model);
                }
            });
        }
        public override void Execute()
        {
            var editorControl = new SharePointConnectionEditor();

            editorControl.ViewModel = Data;
            ShFormUtilsEx.ShowModal(editorControl);
        }
        public override void Execute()
        {
            var editorControl = new PackageDetailsView();

            editorControl.ViewModel = Data;

            ShFormUtilsEx.ShowModal(editorControl);
        }
Esempio n. 4
0
        public override void Execute()
        {
            var editorControl = new OptionsViewControl();

            editorControl.ViewModel = Data;

            ShFormUtilsEx.ShowModal(editorControl);
        }
Esempio n. 5
0
        public override void Execute()
        {
            if (Data == null)
            {
                Data = new SharePointConnectionViewModel();
            }

            var editorControl = new SharePointConnectionEditor();

            editorControl.ViewModel = Data;

            ShFormUtilsEx.ShowModal(new ShowModalExOptions
            {
                Control = editorControl,
                OnOk    = (s, e) => { AppService.SharePointConnections.Add(editorControl.ViewModel); }
            });
        }
Esempio n. 6
0
 public override void Execute()
 {
     ShFormUtilsEx.ShowModal(new MetroAboutControl());
 }