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