mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: UIXControls.MenuItemCommand
|
|
// Assembly: UIXControls, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
// MVID: 78800EA5-2757-404C-BA30-C33FCFC2852A
|
|
// Assembly location: C:\Program Files\Zune\UIXControls.dll
|
|
|
|
using Microsoft.Iris;
|
|
using System;
|
|
|
|
namespace UIXControls
|
|
{
|
|
public class MenuItemCommand : Command
|
|
{
|
|
private bool _hidden;
|
|
|
|
public MenuItemCommand()
|
|
{
|
|
}
|
|
|
|
public MenuItemCommand(string description)
|
|
: base(null, description, null)
|
|
{
|
|
}
|
|
|
|
public bool Hidden
|
|
{
|
|
get => this._hidden;
|
|
set
|
|
{
|
|
if (this._hidden == value)
|
|
return;
|
|
this._hidden = value;
|
|
this.FirePropertyChanged(nameof(Hidden));
|
|
}
|
|
}
|
|
|
|
public virtual bool ShouldHide() => this.Hidden;
|
|
|
|
public override string ToString() => string.Format("{0}:\"{1}\", Available = {2}, Hidden = {3}", this.GetType().Name, Description, Available, Hidden);
|
|
}
|
|
}
|