1 instantiation of StateMachine
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\Factories\StateMachineWithInitialStateFactory.cs (1)
29
return new
StateMachine
()
31 references to StateMachine
System.Activities.Core.Presentation (31)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (3)
373
(this.ModelItem.ItemType == typeof(
StateMachine
)) ?
385
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Only StateMachine contain the StateContainerEditor.");
541
if (this.ModelItem.ItemType == typeof(
StateMachine
))
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (4)
111
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Only StateMachine should have initial state");
221
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Only StateMachine should have initial state");
268
if ((e.ParentModelItem.ItemType == typeof(State) || (e.ParentModelItem.ItemType == typeof(
StateMachine
) && e.ParentModelItem == this.ModelItem)) &&
272
if (modelItem.ItemType == typeof(
StateMachine
))
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (5)
52
else if (connectorModelItem.ItemType == typeof(
StateMachine
))
69
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Should only delete states with StateMachine.");
73
this.ModelItem.ItemType == typeof(
StateMachine
) &&
293
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Should only drop state with StateMachine.");
318
if (modelItem.ItemType == typeof(State) || modelItem.ItemType == typeof(
StateMachine
))
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (3)
263
while (currentModelItem != null && currentModelItem.ItemType != typeof(
StateMachine
))
517
return GetConnectorModelItem(connector).ItemType == typeof(
StateMachine
);
522
Fx.Assert(stateMachineModelItem.ItemType == typeof(
StateMachine
), "ModelItem param should be a statemachine.");
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (9)
371
if (this.ModelItem.ItemType == typeof(
StateMachine
))
411
if (this.ModelItem.ItemType == typeof(
StateMachine
))
435
if (this.ModelItem.ItemType == typeof(
StateMachine
))
505
Fx.Assert(this.ModelItem.ItemType == typeof(
StateMachine
), "Only StateMachine should have initial state.");
1921
if (droppedModelItem.ItemType == typeof(State) && this.ModelItem.ItemType == typeof(
StateMachine
))
2086
else if (this.ModelItem.ItemType == typeof(
StateMachine
) && DragDropHelper.AllowDrop(e.Data, this.Context, typeof(State), typeof(FinalState), typeof(StartNode)))
2181
if (this.ModelItem.ItemType == typeof(
StateMachine
))
2308
return parent != null && parent.ModelItem != null && (parent.ModelItem.ItemType == typeof(
StateMachine
) && parent.ShowExpanded ||
2428
if (targetElement is StartSymbol && this.ModelItem.ItemType == typeof(
StateMachine
))
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
66
if (stateContainerModelItem.ItemType == typeof(
StateMachine
))
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (1)
51
Type stateMachineType = typeof(
StateMachine
);
System\Activities\Core\Presentation\StateMachineValidationErrorSourceLocator.cs (5)
22
return FindRelativePath((
StateMachine
)errorSource, errorSourceDetail);
31
StateMachine
stateMachine = (
StateMachine
)parentActivity;
63
private static List<object> FindRelativePath(
StateMachine
machine, object descendent)
70
private static List<object> FindDescendentFromStateMachine(
StateMachine
machine, object descendent)