コード例 #1
0
ファイル: MenuPath.cs プロジェクト: AndreiCretu23/WPF
 /// <summary>
 /// Creates a new instance of the AbstractMenuPath class.
 /// </summary>
 /// <param name="parentPath">The instance of the AbstractMenuPath associated with the parent menu entry.</param>
 /// <param name="description">The description associated with the menu entry.</param>
 /// <param name="categoryIndex">An index indicating in which category will the menu entry be located.</param>
 /// <param name="orderIndex">An index indicating the position of the menu entry inside it's category.</param>
 /// <param name="toolTip">The tooltip associated with the menu entry.</param>
 /// <param name="icon">The icon associated with the menu entry.</param>
 public AbstractMenuPath(AbstractMenuPath parentPath, Description description, int categoryIndex, int orderIndex, ToolTip toolTip = null, Icon icon = null)
 {
     ParentPath    = parentPath;
     Description   = description;
     ToolTip       = toolTip;
     CategoryIndex = categoryIndex;
     OrderIndex    = orderIndex;
     Icon          = icon;
 }
コード例 #2
0
ファイル: MenuPath.cs プロジェクト: AndreiCretu23/WPF
 /// <summary>
 /// Creates a new instance of the MenuPath class.
 /// </summary>
 /// <param name="parentPath">The instance of the AbstractMenuPath associated with the parent menu entry.</param>
 /// <param name="categoryIndex">An index indicating in which category will the menu entry be located.</param>
 /// <param name="orderIndex">An index indicating the position of the menu entry inside it's category.</param>
 public MenuPath(AbstractMenuPath parentPath, int categoryIndex, int orderIndex)
 {
     ParentPath    = parentPath;
     CategoryIndex = categoryIndex;
     OrderIndex    = orderIndex;
 }