52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
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; }
|
|
|
|
/// <summary>
|
|
/// whether a test is currently running or not
|
|
/// 15324 Warning dialog displayed on every tab change once admin user tries to view another users view
|
|
/// </summary>
|
|
bool TestRunning { get; }
|
|
}
|
|
|
|
public delegate void MenuItemPressedDelegate(string command);
|
|
}
|