void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ManageWorkspaceConfigurationsDialogRoot = (ManageWorkspaceConfigurationsDialog)target;
                break;

            case 2:
                this.WorkspaceListBox = (ListBox)target;
                break;

            case 3:
                this.AcceptButton = (Button)target;
                break;

            case 4:
                this.CancelButton = (Button)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
예제 #2
0
            public override void Execute()
            {
                ManageWorkspaceConfigurationsDialog configurationsDialog = new ManageWorkspaceConfigurationsDialog(this.workspaceService, this.messageService);
                bool?nullable = configurationsDialog.ShowDialog();

                if (!nullable.HasValue || !nullable.Value)
                {
                    return;
                }
                configurationsDialog.CommitChanges();
            }
 public WorkspaceEntry(ManageWorkspaceConfigurationsDialog dialog, string name)
 {
     this.dialog            = dialog;
     this.name              = name;
     this.IsActiveWorkspace = this.name == this.dialog.workspaceService.ActiveWorkspace.Name;
 }