ClearCanvas.Desktop.View.WinForms.WorkspaceView.Activate C# (CSharp) Method

Activate() public method

Activates the workspace, making the tab the selected tab.
public Activate ( ) : void
return void
		public override void Activate()
		{
			_tabPage.Selected = true;
		}

Usage Example

Example #1
0
        /// <summary>
        /// Removes the specified dialog box view.
        /// </summary>
        /// <param name="view"></param>
        public void RemoveDialogBoxView(WorkspaceDialogBoxView view)
        {
            // close the dialog and remove it
            var form = view.DialogBoxForm;

            form.Close();
            _dialogBoxForms.Remove(form);

            // re-enable the appropriate thing
            var previousDialogBox = CollectionUtils.LastElement(_dialogBoxForms);

            if (previousDialogBox != null)
            {
                // enable and activate previous dialog box in the list
                previousDialogBox.Enabled = true;
                previousDialogBox.Activate();
            }
            else
            {
                // activate the workspace content
                _workspaceContent.Enabled = true;
                _owner.Activate();
            }
        }