3 instantiations of DesignTimeVariable
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (3)
123
wrapperObject = new
DesignTimeVariable
(wrappedVariable, this);
259
this.variableWrapperCollection.Add(new
DesignTimeVariable
(variable, this));
424
wrapper = new
DesignTimeVariable
(variable, this);
83 references to DesignTimeVariable
System.Data (83)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (3)
294
TypeNameHelper.GetDisplayName(variable.Properties[
DesignTimeVariable
.VariableTypeProperty].ComputedValue as Type, false), null));
297
variable.Properties[
DesignTimeVariable
.VariableNameProperty].ComputedValue.ToString(), null));
299
object propertyValue = variable.Properties[
DesignTimeVariable
.VariableDefaultProperty].ComputedValue;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (80)
54
ObservableCollection<
DesignTimeVariable
> variableWrapperCollection = new ObservableCollection<
DesignTimeVariable
>();
118
DesignTimeVariable
wrapperObject = null;
133
internal void ChangeVariableType(
DesignTimeVariable
oldVariableWrapper, Variable newVariable)
149
internal void NotifyVariableScopeChanged(
DesignTimeVariable
variable)
160
Func<
DesignTimeVariable
, bool> checkForDuplicates = new Func<
DesignTimeVariable
, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifierName));
161
DesignTimeVariable
duplicate = this.variableWrapperCollection.FirstOrDefault<
DesignTimeVariable
>(checkForDuplicates);
179
Func<
DesignTimeVariable
, bool> checkForOldNameDuplicates = new Func<
DesignTimeVariable
, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifier));
180
IEnumerable<
DesignTimeVariable
> oldDuplicates = this.variableWrapperCollection.Where<
DesignTimeVariable
>(checkForOldNameDuplicates);
181
if (oldDuplicates.Count<
DesignTimeVariable
>() == 1)
183
DesignTimeVariable
wrapper = oldDuplicates.First<
DesignTimeVariable
>();
199
internal void UpdateTypeDesigner(
DesignTimeVariable
variable)
206
return this.variableWrapperCollection.GetUniqueName<
DesignTimeVariable
>(VariableDesigner.DefaultVariableName, wrapper => wrapper.GetVariableName().IdentifierName);
275
if (null == current || !typeof(
DesignTimeVariable
).IsAssignableFrom(current.ItemType))
288
if (item is
DesignTimeVariable
)
290
if (object.ReferenceEquals(((
DesignTimeVariable
)item).ReflectedObject, variable))
306
if (null != this.variableDataGrid.SelectedItem && this.variableDataGrid.SelectedItem is
DesignTimeVariable
)
308
DesignTimeVariable
variable = (
DesignTimeVariable
)this.variableDataGrid.SelectedItem;
320
if (item.ItemType != typeof(
DesignTimeVariable
))
372
if (null == primarySelection || !primarySelection.IsAssignableFrom<
DesignTimeVariable
>())
385
DesignTimeVariable
selectedVariable = this.variableDataGrid.SelectedItem as
DesignTimeVariable
;
419
DesignTimeVariable
wrapper = this.variableWrapperCollection
420
.FirstOrDefault<
DesignTimeVariable
>(p => (ModelItem.Equals(p.ReflectedObject, variable)));
451
DesignTimeVariable
wrapper = this.variableWrapperCollection.FirstOrDefault(p => ModelItem.Equals(p.ReflectedObject, variable));
472
foreach (
DesignTimeVariable
arg in e.OldItems)
484
foreach (
DesignTimeVariable
var in e.NewItems)
499
else if (this.variableDataGrid.SelectedItem is
DesignTimeVariable
)
514
var editorType = variable.GetDynamicPropertyValueEditorType(
DesignTimeVariable
.VariableDefaultProperty);
520
resolveParams.Template = variable.GetDynamicPropertyValueEditor(
DesignTimeVariable
.VariableDefaultProperty).InlineEditorTemplate;
536
return variable.GetDynamicPropertyValueEditor(
DesignTimeVariable
.VariableDefaultProperty) as DialogPropertyValueEditor;
542
return variable.Content.Properties[
DesignTimeVariable
.VariableDefaultProperty];
574
DesignTimeVariable
designTimeVariable = item as
DesignTimeVariable
;
577
designTimeVariable.NotifyPropertyChanged(
DesignTimeVariable
.AnnotationTextProperty);
629
DesignTimeVariable
designTimeVariable = item as
DesignTimeVariable
;
638
foreach (
DesignTimeVariable
designTimeVariable in this.variableWrapperCollection)
686
DesignTimeVariable
variable = (
DesignTimeVariable
)this.variableDataGrid.SelectedItems[0];
687
variable.Content.Properties[
DesignTimeVariable
.AnnotationTextProperty].SetValue(annotationText);
709
DesignTimeVariable
variable = (
DesignTimeVariable
)this.variableDataGrid.SelectedItems[0];
714
dialog.AnnotationText = variable.Content.Properties[
DesignTimeVariable
.AnnotationTextProperty].ComputedValue as string;
727
variable.Content.Properties[
DesignTimeVariable
.AnnotationTextProperty].SetValue(annotationText);
746
DesignTimeVariable
variable = (
DesignTimeVariable
)this.variableDataGrid.SelectedItems[0];
747
variable.Content.Properties[
DesignTimeVariable
.AnnotationTextProperty].ClearValue();
908
return variableContainer.Any(p => string.Equals(p.Properties[
DesignTimeVariable
.VariableNameProperty].ComputedValue, variableName));
932
if (!variables.Any(p => string.Equals(p.Properties[
DesignTimeVariable
.VariableNameProperty].ComputedValue, name)))
1015
((
DesignTimeVariable
)instance).SetVariableName((VBIdentifierName)newValue);
1017
PropertyGetter = (instance) => (((
DesignTimeVariable
)instance).GetVariableName()),
1018
PropertyValidator = (instance, value, errors) => (((
DesignTimeVariable
)instance).ValidateVariableName(value, errors))
1027
((
DesignTimeVariable
)instance).SetVariableType((Type)newValue);
1029
PropertyGetter = (instance) => (((
DesignTimeVariable
)instance).GetVariableType()),
1039
((
DesignTimeVariable
)instance).SetVariableScope(newValue);
1041
PropertyGetter = (instance) => (((
DesignTimeVariable
)instance).GetVariableScope()),
1042
PropertyValidator = (instance, value, errors) => (((
DesignTimeVariable
)instance).ValidateVariableScope(value, errors))
1051
((
DesignTimeVariable
)instance).SetVariableValue(newValue);
1053
PropertyGetter = (instance) => (((
DesignTimeVariable
)instance).GetVariableValue()),
1062
PropertyGetter = (instance) => (((
DesignTimeVariable
)instance).GetToolTip()),
1074
((
DesignTimeVariable
)instance).GetScopeLevel()
1084
((
DesignTimeVariable
)instance).SetVariableModifiers(newValue);
1089
return ((
DesignTimeVariable
)instance).GetVariableModifiers();
1099
((
DesignTimeVariable
)instance).SetAnnotationText(newValue);
1104
return ((
DesignTimeVariable
)instance).GetAnnotationText();
1370
if (string.Equals(propertyName,
DesignTimeVariable
.VariableScopeProperty))
1375
else if (string.Equals(propertyName,
DesignTimeVariable
.VariableNameProperty))
1379
else if (string.Equals(propertyName,
DesignTimeVariable
.VariableTypeProperty))
1383
else if (string.Equals(propertyName,
DesignTimeVariable
.TimestampProperty))
1387
this.RaisePropertyChangedEvent(
DesignTimeVariable
.VariableTypeProperty);
1466
if (null != designTimeVariable && typeof(
DesignTimeVariable
).IsAssignableFrom(designTimeVariable.ItemType))
1468
DesignTimeVariable
variable = (
DesignTimeVariable
)designTimeVariable.GetCurrentValue();