mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
69 lines
1.8 KiB
C#
69 lines
1.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Microsoft.Iris.BooleanChoice
|
|
// Assembly: UIX, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
// MVID: A56C6C9D-B7F6-46A9-8BDE-B3D9B8D60B11
|
|
// Assembly location: C:\Program Files\Zune\UIX.dll
|
|
|
|
using Microsoft.Iris.Library;
|
|
using Microsoft.Iris.Markup;
|
|
using Microsoft.Iris.ModelItems;
|
|
using System.Collections;
|
|
|
|
namespace Microsoft.Iris
|
|
{
|
|
public class BooleanChoice :
|
|
Choice,
|
|
IUIBooleanChoice,
|
|
IUIChoice,
|
|
IUIValueRange,
|
|
IDisposableObject,
|
|
INotifyObject
|
|
{
|
|
public BooleanChoice(IModelItemOwner owner, string description, IList options)
|
|
: base(owner, description)
|
|
{
|
|
if (options == null)
|
|
return;
|
|
this.Options = options;
|
|
}
|
|
|
|
public BooleanChoice(IModelItemOwner owner, string description)
|
|
: this(owner, description, null)
|
|
{
|
|
}
|
|
|
|
public BooleanChoice(IModelItemOwner owner)
|
|
: this(owner, null, null)
|
|
{
|
|
}
|
|
|
|
public BooleanChoice()
|
|
: this(null)
|
|
{
|
|
}
|
|
|
|
internal override Microsoft.Iris.ModelItems.Choice CreateInternalChoice() => new Microsoft.Iris.ModelItems.BooleanChoice();
|
|
|
|
public bool Value
|
|
{
|
|
get
|
|
{
|
|
using (this.ThreadValidator)
|
|
return this.ChosenIndex == 1;
|
|
}
|
|
set
|
|
{
|
|
using (this.ThreadValidator)
|
|
{
|
|
if (value == this.Value)
|
|
return;
|
|
if (value)
|
|
this.ChosenIndex = 1;
|
|
else
|
|
this.ChosenIndex = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|