You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,67 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user