Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

68 lines
1.8 KiB
C#

//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Activities.Statements
{
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.Collections;
using System.Windows.Markup;
[ContentProperty("Action")]
public sealed class PickBranch
{
Collection<Variable> variables;
string displayName;
public PickBranch()
{
displayName = "PickBranch";
}
public Collection<Variable> Variables
{
get
{
if (this.variables == null)
{
this.variables = new ValidatingCollection<Variable>
{
// disallow null values
OnAddValidationCallback = item =>
{
if (item == null)
{
throw FxTrace.Exception.ArgumentNull("item");
}
}
};
}
return this.variables;
}
}
[DefaultValue(null)]
[DependsOn("Variables")]
public Activity Trigger { get; set; }
[DefaultValue(null)]
[DependsOn("Trigger")]
public Activity Action { get; set; }
//
[DefaultValue("PickBranch")]
public string DisplayName
{
get
{
return this.displayName;
}
set
{
this.displayName = value;
}
}
}
}