Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BranchItemState" /> class.
 /// </summary>
 /// <param name="branch">If this item is a branch, this parameter must contain the branch state (<c>null</c> otherwise)</param>
 /// <param name="tabSet">If this item is a tab set, this parameter must contain the tab set state (<c>null</c> otherwise)</param>
 public BranchItemState(BranchState <TTabItem> branch, TabSetState <TTabItem> tabSet)
 {
     Branch = branch;
     TabSet = tabSet;
 }
Example #2
0
 /// <summary>
 /// The generic constructor, used by the Json deserializer
 /// </summary>
 /// <param name="itemAsBranch">If this item is a branch, this parameter must contain the branch state (<c>null</c> otherwise)</param>
 /// <param name="itemAsTabSet">If this item is a tab set, this parameter must contain the tab set state (<c>null</c> otherwise)</param>
 public BranchItemState(BranchState <TTabItem> itemAsBranch, TabSetState <TTabItem> itemAsTabSet)
 {
     this.ItemAsBranch = itemAsBranch;
     this.ItemAsTabSet = itemAsTabSet;
 }