<Activity mc:Ignorable="sap" x:Class="FlowChartSample.SwitchDemo" sap:VirtualizedContainerService.HintSize="654,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">
  <sap:WorkflowViewStateService.ViewState>
    <scg3:Dictionary x:TypeArguments="x:String, x:Object">
      <x:Boolean x:Key="ShouldExpandAll">False</x:Boolean>
    </scg3:Dictionary>
  </sap:WorkflowViewStateService.ViewState>
  <Flowchart sad:XamlDebuggerXmlReader.FileName="J:\Book\Democodes\Ch13\Ch13Sample_03\FlowChartSample\SwitchDemo.xaml" sap:VirtualizedContainerService.HintSize="614,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" />
      <Variable x:TypeArguments="x:String" Name="variable1" />
    </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">260,2.5</av:Point>
        <av:Size x:Key="ShapeSize">60,75</av:Size>
        <av:PointCollection x:Key="ConnectorLocation">290,77.5 290,107.5 290,114</av:PointCollection>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <Flowchart.StartNode>
      <FlowStep x:Name="__ReferenceID0">
        <sap:WorkflowViewStateService.ViewState>
          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">190,114</av:Point>
            <av:Size x:Key="ShapeSize">200,52</av:Size>
          </scg3:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <Switch x:TypeArguments="local:CalculationType" Expression="[OperatorType]" sap:VirtualizedContainerService.HintSize="481,208">
          <Assign x:Key="Add" sap:VirtualizedContainerService.HintSize="461,100">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber + SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
          <Assign x:Key="Subtract" sap:VirtualizedContainerService.HintSize="461,100">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber - SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
          <Assign x:Key="Multiply" sap:VirtualizedContainerService.HintSize="461,100">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">[Result]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">[FirstNumber * SecondNumber]</InArgument>
            </Assign.Value>
          </Assign>
          <Assign x:Key="Divide" sap:VirtualizedContainerService.HintSize="461,100">
            <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>
        </Switch>
      </FlowStep>
    </Flowchart.StartNode>
    <x:Reference>__ReferenceID0</x:Reference>
  </Flowchart>
</Activity>