示例#1
0
文件: Item.cs 项目: trygu/PxWeb
 /// <summary>
 /// Abstract Item that acts as base for the items in the menu.
 /// </summary>
 /// <param name="text">Presentation text</param>
 /// <param name="textShort">Short presentation text</param>
 /// <param name="sortCode">Sort code</param>
 /// <param name="menu">Menu code</param>
 /// <param name="selection">Selection code</param>
 /// <param name="description">Description of the item</param>
 protected Item(string text, string textShort, string sortCode, string menu, string selection, string description)
 {
     Text        = text;
     TextShort   = textShort;
     SortCode    = sortCode;
     ID          = new ItemSelection(menu, selection);
     Description = description;
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            ItemSelection o = obj as ItemSelection;

            if (o == null)
            {
                return(false);
            }

            return(Menu == o.Menu && Selection == o.Selection);
        }