| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using Muchinfo.MTPClient.Data.Enums;
- using System.Collections.Generic;
- namespace Muchinfo.MTPClient.Data
- {
- /// <summary>
- /// ToolbarGroup类
- /// </summary>
- public class ToolbarGroup
- {
- /// <summary>
- /// 顺序
- /// </summary>
- public int Order { get; set; }
- /// <summary>
- /// 子Toolbar集合
- /// </summary>
- public List<ToolbarItem> Items { get; set; }
- }
- /// <summary>
- /// ToolbarItem类
- /// </summary>
- public class ToolbarItem
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="ToolbarItem" /> class.
- /// </summary>
- /// <param name="iconName">图标资源名称.</param>
- /// <param name="toolTip">提示字符.</param>
- /// <param name="commandType">命令类型.</param>
- public ToolbarItem(string iconName, string toolTip, MenuCommandType commandType)
- {
- this.IconName = iconName;
- this.ToolTip = toolTip;
- this.CommandType = commandType;
- this.Visible = false;
- this.Type = ToolbarButtonType.Default;
- }
- /// <summary>
- /// 图标名称
- /// </summary>
- public string IconName { get; set; }
- /// <summary>
- /// 提示字符
- /// </summary>
- public string ToolTip { get; set; }
- /// <summary>
- /// 命令类型
- /// </summary>
- public MenuCommandType CommandType { get; set; }
- /// <summary>
- /// 子项集合
- /// </summary>
- public List<ToolbarItem> Children { get; set; }
- /// <summary>
- /// 是否可见
- /// </summary>
- public bool Visible { get; set; }
- /// <summary>
- /// 何种类型页面可用
- /// </summary>
- public ToolbarButtonType Type { get; set; }
- }
- }
|