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