init
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using DTS.Common.Base;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace DTS.Common.Interface.Menu.HamburgerMenu
|
||||
{
|
||||
/// <summary>
|
||||
/// this class describes the view module for the group import module
|
||||
/// this handles interaction betweens the views and the application, as well as
|
||||
/// the logic and intermediate data for the module
|
||||
/// </summary>
|
||||
public interface IHamburgerMenuViewModel : IBaseViewModel
|
||||
{
|
||||
IHamburgerMenuView View { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// any work that needs to be done when a view is loaded
|
||||
/// </summary>
|
||||
void OnSetActive();
|
||||
/// <summary>
|
||||
/// any work that needs to be done when view is unloaded
|
||||
/// </summary>
|
||||
void Unset();
|
||||
/// <summary>
|
||||
/// returns the menu for the hamburger menu
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
ContextMenu GetContextMenu();
|
||||
/// <summary>
|
||||
/// sets the menu items for the hamburger menu
|
||||
/// </summary>
|
||||
/// <param name="items"></param>
|
||||
void SetMenuItems(string[] items);
|
||||
/// <summary>
|
||||
/// clear the menu items
|
||||
/// </summary>
|
||||
void ClearMenuItems();
|
||||
|
||||
/// <summary>
|
||||
/// handler for when items are pressed
|
||||
/// </summary>
|
||||
MenuItemPressedDelegate MenuItemPressed { get; set; }
|
||||
//15324 Warning dialog displayed on every tab change once admin user tries to view another users view
|
||||
/// <summary>
|
||||
/// Hamburger menu is enabled or disabled
|
||||
/// </summary>
|
||||
bool IsEnabled { get; }
|
||||
/// <summary>
|
||||
/// Enable or disable HamburgerMenu
|
||||
/// </summary>
|
||||
/// <param name="enable"></param>
|
||||
void EnableMenu(bool enable);
|
||||
}
|
||||
|
||||
public delegate void MenuItemPressedDelegate(string command);
|
||||
}
|
||||
Reference in New Issue
Block a user