/// <summary> /// Initialise a new instance of the KryptonWorkspaceSequence class. /// </summary> /// <param name="orientation">Initial orientation of the children.</param> public KryptonWorkspaceSequence(Orientation orientation) { _orientation = orientation; // Create the child collection for holding items Children = new KryptonWorkspaceCollection(this); Children.PropertyChanged += OnChildrenPropertyChanged; Children.MaximizeRestoreClicked += OnChildrenMaximizeRestoreClicked; // Default properties _setVisible = true; WorkspaceStarSize = new StarSize(); WorkspaceActualSize = Size.Empty; UniqueName = CommonHelper.UniqueString; }
/// <summary> /// Initialise a new instance of the KryptonWorkspaceSequence class. /// </summary> /// <param name="orientation">Initial orientation of the children.</param> public KryptonWorkspaceSequence(Orientation orientation) { _orientation = orientation; // Create the child collection for holding items _children = new KryptonWorkspaceCollection(this); _children.PropertyChanged += new PropertyChangedEventHandler(OnChildrenPropertyChanged); _children.MaximizeRestoreClicked += new EventHandler(OnChildrenMaximizeRestoreClicked); // Default properties _setVisible = true; _starSize = new StarSize(); _actualSize = Size.Empty; _uniqueName = CommonHelper.UniqueString; }