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

            case 2:
                this.WorkspaceNameTextBox = (TextBox)target;
                break;

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

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

            default:
                this._contentLoaded = true;
                break;
            }
        }
            public override void Execute()
            {
                SaveConfigurationDialog configurationDialog = new SaveConfigurationDialog(this.workspaceService);
                bool?nullable = configurationDialog.ShowDialog();

                if (!nullable.HasValue || !nullable.Value)
                {
                    return;
                }
                this.workspaceService.SaveAsNewWorkspace(configurationDialog.WorkspaceName);
            }