public bool Equals(MenuControlBase other) { bool result = false; if (_helper != null && other._helper != null) { result = GetDataHash() == other.GetDataHash(); } return(result); }
protected virtual void OnSubMenuChange(MenuControlBase activeMenu) { if (CurActiveMenu != null && (CurActiveMenu.Helper.InteractType & MenuInteractType.Exclusive) > 0) { CurActiveMenu.Disable(); CurActiveMenuHash = null; } CurActiveMenu = activeMenu; if (CurActiveMenu != null) { CurActiveMenu.Enable(); CurActiveMenuHash = CurActiveMenu.GetDataHash(); } }