<Activity mc:Ignorable="sap" x:Class="FlowChartSample.FlowSwitchDemo" sap:VirtualizedContainerService.HintSize="740,676" mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:local="clr-namespace:FlowChartSample" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Flowchart sad:XamlDebuggerXmlReader.FileName="J:\Book\Democodes\Ch13\Ch13Sample_03\FlowChartSample\FlowSwitchDemo.xaml" sap:VirtualizedContainerService.HintSize="700,636">
    <Flowchart.Variables>
      <Variable x:TypeArguments="x:Int32" Default="100" Name="FirstNumber" />
      <Variable x:TypeArguments="x:Int32" Default="10" Name="SecondNumber" />
      <Variable x:TypeArguments="local:CalculationType" Default="[CalculationType.Add]" Name="OperatorType" />
      <Variable x:TypeArguments="x:Int32" Default="0" Name="Result" />
    </Flowchart.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">False</x:Boolean>
        <av:Point x:Key="ShapeLocation">310,2.5</av:Point>
        <av:Size x:Key="ShapeSize">60,75</av:Size>
        <av:PointCollection x:Key="ConnectorLocation">340,77.5 340,107.5 340,122.5</av:PointCollection>
        <x:Double x:Key="Width">686</x:Double>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <Flowchart.StartNode>
      <FlowSwitch x:TypeArguments="local:CalculationType" x:Name="__ReferenceID0" Expression="[OperatorType]" sap:VirtualizedContainerService.HintSize="60,75">
        <sap:WorkflowViewStateService.ViewState>
          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">310,122.5</av:Point>
            <av:Size x:Key="ShapeSize">60,75</av:Size>
            <av:PointCollection x:Key="AddConnector">310,141.25 130,141.25 130,231</av:PointCollection>
            <av:PointCollection x:Key="SubtractConnector">325,197.5 325,321 180,321 180,351</av:PointCollection>
            <av:PointCollection x:Key="MultiplyConnector">355,197.5 355,321 470,321 470,351</av:PointCollection>
            <av:PointCollection x:Key="DivideConnector">370,141.25 520,141.25 520,231</av:PointCollection>
          </scg3:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <FlowStep x:Key="Add" x:Name="__ReferenceID1">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <av:Point x:Key="ShapeLocation">8.5,231</av:Point>
              <av:Size x:Key="ShapeSize">243,58</av:Size>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <Assign sap:VirtualizedContainerService.HintSize="243,58">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber + SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
        </FlowStep>
        <FlowStep x:Key="Subtract" x:Name="__ReferenceID2">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <av:Point x:Key="ShapeLocation">58.5,351</av:Point>
              <av:Size x:Key="ShapeSize">243,58</av:Size>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <Assign sap:VirtualizedContainerService.HintSize="243,58">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber - SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
        </FlowStep>
        <FlowStep x:Key="Multiply" x:Name="__ReferenceID3">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <av:Point x:Key="ShapeLocation">348.5,351</av:Point>
              <av:Size x:Key="ShapeSize">243,58</av:Size>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <Assign sap:VirtualizedContainerService.HintSize="243,58">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber * SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
        </FlowStep>
        <FlowStep x:Key="Divide" x:Name="__ReferenceID4">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <av:Point x:Key="ShapeLocation">398.5,231</av:Point>
              <av:Size x:Key="ShapeSize">243,58</av:Size>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <Assign sap:VirtualizedContainerService.HintSize="243,58">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[Convert.ToInt32(FirstNumber / SecondNumber)]</InArgument>
            </Assign.Value>
          </Assign>
        </FlowStep>
      </FlowSwitch>
    </Flowchart.StartNode>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID3</x:Reference>
    <x:Reference>__ReferenceID4</x:Reference>
  </Flowchart>
</Activity>