コード例 #1
0
        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);
                }
            });
        }
コード例 #2
0
        public override void Execute()
        {
            var editorControl = new SharePointConnectionEditor();

            editorControl.ViewModel = Data;
            ShFormUtilsEx.ShowModal(editorControl);
        }
コード例 #3
0
        public override void Execute()
        {
            var editorControl = new PackageDetailsView();

            editorControl.ViewModel = Data;

            ShFormUtilsEx.ShowModal(editorControl);
        }
コード例 #4
0
        public override void Execute()
        {
            var editorControl = new OptionsViewControl();

            editorControl.ViewModel = Data;

            ShFormUtilsEx.ShowModal(editorControl);
        }
コード例 #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); }
            });
        }
コード例 #6
0
 public override void Execute()
 {
     ShFormUtilsEx.ShowModal(new MetroAboutControl());
 }