1 write to flowSwitchModelItem
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowSwitchLink.cs (1)
30
this.
flowSwitchModelItem
= flowSwitchMI;
32 references to flowSwitchModelItem
System.Activities.Core.Presentation (32)
System\Activities\Core\Presentation\FlowSwitchLink.cs (32)
31
object flowSwitch = this.
flowSwitchModelItem
.GetCurrentValue();
32
this.parentFlowSwitch = (FlowSwitch<T>)this.
flowSwitchModelItem
.GetCurrentValue();
55
this.
flowSwitchModelItem
.Properties["Cases"],
164
if (object.Equals(this.
flowSwitchModelItem
.Properties["Default"].Value, null))
166
using (EditingScope es = (EditingScope)this.
flowSwitchModelItem
.BeginEdit(SR.FlowSwitchCaseRenameEditingScopeDesc))
168
ModelItem flowNodeMI = GenericFlowSwitchHelper.GetCaseModelItem(this.
flowSwitchModelItem
.Properties["Cases"], this.CaseObject);
169
GenericFlowSwitchHelper.RemoveCase(this.
flowSwitchModelItem
.Properties["Cases"], this.CaseObject);
170
this.
flowSwitchModelItem
.Properties["Default"].SetValue(flowNodeMI);
187
using (EditingScope es = (EditingScope)this.
flowSwitchModelItem
.BeginEdit(SR.FlowSwitchCaseRenameEditingScopeDesc))
189
ModelItem defaultCase = this.
flowSwitchModelItem
.Properties["Default"].Value;
195
string caseName = GenericFlowSwitchHelper.GetCaseName(this.
flowSwitchModelItem
.Properties["Cases"], typeArgument, out errorMessage);
207
FlowSwitchCaseEditorDialog editor = new FlowSwitchCaseEditorDialog(this.
flowSwitchModelItem
, ((WorkflowViewElement)this.
flowSwitchModelItem
.View).Context, this.
flowSwitchModelItem
.View, SR.ChangeCaseValue, this.
flowSwitchModelItem
.ItemType.GetGenericArguments()[0]);
217
if (GenericFlowSwitchHelper.ContainsCaseKey(this.
flowSwitchModelItem
.Properties["Cases"], uniqueCase))
225
this.
flowSwitchModelItem
.Properties["Default"].SetValue(null);
226
this.
flowSwitchModelItem
.Properties[FlowSwitchLabelFeature.DefaultCaseDisplayNamePropertyName].SetValue(FlowSwitchLabelFeature.DefaultCaseDisplayNameDefaultValue);
232
GenericFlowSwitchHelper.AddCase(this.
flowSwitchModelItem
.Properties["Cases"], uniqueCase, defaultCase.GetCurrentValue());
237
GenericFlowSwitchHelper.AddCase(this.
flowSwitchModelItem
.Properties["Cases"], uniqueCase, defaultCase.GetCurrentValue());
253
WorkflowViewElement designer = (WorkflowViewElement)this.
flowSwitchModelItem
.View;
282
using (EditingScope es = (EditingScope)this.
flowSwitchModelItem
.BeginEdit(SR.FlowSwitchCaseRenameEditingScopeDesc))
286
flowElementMI = GenericFlowSwitchHelper.GetCaseModelItem(this.
flowSwitchModelItem
.Properties["Cases"], oldValue);
287
GenericFlowSwitchHelper.RemoveCase(this.
flowSwitchModelItem
.Properties["Cases"], oldValue);
290
GenericFlowSwitchHelper.AddCase(this.
flowSwitchModelItem
.Properties["Cases"], newValue, flowElementMI.GetCurrentValue());
311
EditingContext context = this.
flowSwitchModelItem
.GetEditingContext();
315
object viewState = viewStateService.RetrieveViewState(this.
flowSwitchModelItem
, oldValue);
318
viewStateService.StoreViewStateWithUndo(this.
flowSwitchModelItem
, oldValue, null);
319
viewStateService.StoreViewStateWithUndo(this.
flowSwitchModelItem
, newValue, viewState);
359
this.DefaultCaseDisplayName = (string)this.
flowSwitchModelItem
.Properties[FlowSwitchLabelFeature.DefaultCaseDisplayNamePropertyName].Value.GetCurrentValue();
390
using (ModelEditingScope scope = this.
flowSwitchModelItem
.BeginEdit(SR.FlowSwitchDefaultCaseDisplayNameEditingScopeDesc))
392
this.
flowSwitchModelItem
.Properties[FlowSwitchLabelFeature.DefaultCaseDisplayNamePropertyName].SetValue(newValue);