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