Пример #1
0
            public override void Execute()
            {
                MoreWorkspacesDialog workspacesDialog = new MoreWorkspacesDialog(this.workspaceService);
                bool?nullable = workspacesDialog.ShowDialog();

                if (!nullable.HasValue || !nullable.Value || workspacesDialog.SelectedWorkspace == null)
                {
                    return;
                }
                this.workspaceService.SwitchToWorkspace(workspacesDialog.SelectedWorkspace);
            }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
            {
                this.MoreWorkspacesDialogRoot = (MoreWorkspacesDialog)target;
                return;
            }

            case 2:
            {
                this.AcceptButton = (Button)target;
                return;
            }

            case 3:
            {
                this.CancelButton = (Button)target;
                return;
            }
            }
            this._contentLoaded = true;
        }