mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-05 20:21:24 +12:00
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
// <copyright file="MenuData.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace SystemTrayMenu.DataClasses
|
|
{
|
|
using System.Collections.Generic;
|
|
|
|
internal enum MenuDataDirectoryState
|
|
{
|
|
/// <summary>
|
|
/// State not defined or data still loading
|
|
/// </summary>
|
|
Undefined,
|
|
|
|
/// <summary>
|
|
/// Data is available
|
|
/// </summary>
|
|
Valid,
|
|
|
|
/// <summary>
|
|
/// Loading finished but no data available
|
|
/// </summary>
|
|
Empty,
|
|
|
|
/// <summary>
|
|
/// Loading failed, so no data available
|
|
/// </summary>
|
|
NoAccess,
|
|
}
|
|
|
|
internal struct MenuData
|
|
{
|
|
public MenuData(int level, RowData? rowDataParent)
|
|
{
|
|
Level = level;
|
|
RowDataParent = rowDataParent;
|
|
}
|
|
|
|
internal int Level { get; }
|
|
|
|
internal RowData? RowDataParent { get; set; }
|
|
|
|
internal List<RowData> RowDatas { get; set; } = new ();
|
|
|
|
internal MenuDataDirectoryState DirectoryState { get; set; } = MenuDataDirectoryState.Undefined;
|
|
}
|
|
}
|