3 instantiations of DesignTimeArgument
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (3)
137
wrapper = new
DesignTimeArgument
(argument, this);
181
this.argumentWrapperCollection.Add(new
DesignTimeArgument
(argument, this));
368
wrapper = new
DesignTimeArgument
(argument, this);
75 references to DesignTimeArgument
System.Data (75)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (5)
374
argument.Properties[
DesignTimeArgument
.ArgumentNameProperty].ComputedValue.ToString(), null));
376
IList<string> argumentValues = GetSearchableStrings(argument.Properties[
DesignTimeArgument
.ArgumentDefaultValueProperty].ComputedValue);
401
if (candidateArgument.ItemType == typeof(
DesignTimeArgument
))
405
DesignTimeArgument
designTimeArgument = candidateArgument.GetCurrentValue() as
DesignTimeArgument
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (70)
55
ObservableCollection<
DesignTimeArgument
> argumentWrapperCollection = new ObservableCollection<
DesignTimeArgument
>();
133
DesignTimeArgument
wrapper = null;
194
if (null == current || !typeof(
DesignTimeArgument
).IsAssignableFrom(current.ItemType))
204
argumentTypeTypePresenter.Filter = ((
DesignTimeArgument
)argumentTypeTypePresenter.DataContext).Filter;
219
if (item is
DesignTimeArgument
)
221
if (object.ReferenceEquals(((
DesignTimeArgument
)item).ReflectedObject, argument))
236
DesignTimeArgument
argument = this.dgHelper.SelectedItem<
DesignTimeArgument
>();
250
if (item.ItemType != typeof(
DesignTimeArgument
))
302
DesignTimeArgument
selectedArgument = this.argumentsDataGrid.SelectedItem as
DesignTimeArgument
;
363
var
wrapper = this.argumentWrapperCollection
377
var
wrapper = this.argumentWrapperCollection.FirstOrDefault(p => ModelItem.Equals(p.ReflectedObject, argument));
393
foreach (
DesignTimeArgument
arg in e.OldItems)
405
foreach (
DesignTimeArgument
arg in e.NewItems)
415
var
argument = (
DesignTimeArgument
)resolveParams.Cell.DataContext;
418
var editorType = argument.GetDynamicPropertyValueEditorType(
DesignTimeArgument
.ArgumentDefaultValueProperty);
421
if (!typeof(
DesignTimeArgument
.DefaultValueEditor).IsAssignableFrom(editorType))
424
resolveParams.Template = argument.GetDynamicPropertyValueEditor(
DesignTimeArgument
.ArgumentDefaultValueProperty).InlineEditorTemplate;
455
return argument.GetDynamicPropertyValueEditor(
DesignTimeArgument
.ArgumentDefaultValueProperty) as DialogPropertyValueEditor;
461
return argument.Content.Properties[
DesignTimeArgument
.ArgumentDefaultValueProperty];
464
internal void UpdateTypeDesigner(
DesignTimeArgument
argument)
472
Func<
DesignTimeArgument
, bool> checkForDuplicates = new Func<
DesignTimeArgument
, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifierName));
473
DesignTimeArgument
duplicate = this.argumentWrapperCollection.FirstOrDefault<
DesignTimeArgument
>(checkForDuplicates);
491
Func<
DesignTimeArgument
, bool> checkForOldNameDuplicates = new Func<
DesignTimeArgument
, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifier));
492
IEnumerable<
DesignTimeArgument
> oldDuplicates = this.argumentWrapperCollection.Where<
DesignTimeArgument
>(checkForOldNameDuplicates);
493
if (oldDuplicates.Count<
DesignTimeArgument
>() == 1)
495
DesignTimeArgument
wrapper = oldDuplicates.First<
DesignTimeArgument
>();
533
internal void UpdateArgumentName(
DesignTimeArgument
argumentWrapper, string newName, string oldName)
564
DesignTimeArgument
designTimeArgument = item as
DesignTimeArgument
;
567
designTimeArgument.NotifyPropertyChanged(
DesignTimeArgument
.AnnotationTextProperty);
619
DesignTimeArgument
designTimeArgument = item as
DesignTimeArgument
;
628
foreach (
DesignTimeArgument
designTimeArgument in this.argumentWrapperCollection)
676
DesignTimeArgument
variable = (
DesignTimeArgument
)this.argumentsDataGrid.SelectedItems[0];
677
variable.Content.Properties[
DesignTimeArgument
.AnnotationTextProperty].SetValue(annotationText);
699
DesignTimeArgument
variable = (
DesignTimeArgument
)this.argumentsDataGrid.SelectedItems[0];
704
dialog.AnnotationText = variable.Content.Properties[
DesignTimeArgument
.AnnotationTextProperty].ComputedValue as string;
717
variable.Content.Properties[
DesignTimeArgument
.AnnotationTextProperty].SetValue(annotationText);
736
DesignTimeArgument
variable = (
DesignTimeArgument
)this.argumentsDataGrid.SelectedItems[0];
737
variable.Content.Properties[
DesignTimeArgument
.AnnotationTextProperty].ClearValue();
806
((
DesignTimeArgument
)instance).SetArgumentName((VBIdentifierName)newValue);
808
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetArgumentName()),
809
PropertyValidator = (instance, value, errors) => (((
DesignTimeArgument
)instance).ValidateArgumentName(value, errors))
818
((
DesignTimeArgument
)instance).SetArgumentType((Type)newValue);
820
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetArgumentType()),
830
((
DesignTimeArgument
)instance).SetArgumentDirection((PropertyKind)newValue);
832
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetArgumentDirection()),
842
((
DesignTimeArgument
)instance).SetArgumentValue(newValue);
844
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetArgumentValue()),
845
PropertyValidator = (instance, value, errors) => (((
DesignTimeArgument
)instance).ValidateArgumentValue(value, errors)),
852
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetIsOutputArgument()),
860
PropertyGetter = (instance) => (((
DesignTimeArgument
)instance).GetOwnerSchemaProperty()),
875
((
DesignTimeArgument
)instance).SetIsRequired(newValue);
880
return ((
DesignTimeArgument
)instance).GetIsRequired();
890
((
DesignTimeArgument
)instance).SetAnnotationText(newValue);
895
return ((
DesignTimeArgument
)instance).GetAnnotationText();
1104
this.ReflectedObject.Properties[
DesignTimeArgument
.ArgumentDefaultValueProperty].SetValue(value);
1109
ModelItem value = this.ReflectedObject.Properties[
DesignTimeArgument
.ArgumentDefaultValueProperty].Value;