| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 | <UserControl x:Class="FurnaceUI.Views.Maintenances.APCConfigView"             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"               xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:cal="http://www.caliburn.org"             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"             xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"             mc:Ignorable="d"              d:DesignHeight="550" d:DesignWidth="550" x:Name="self">    <UserControl.Resources>        <DataTemplate  x:Key="IndexTemplate">            <Label Content="{Binding Index}"  Width="30" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>        </DataTemplate>    </UserControl.Resources>    <Canvas Width="550" Height="550">        <Grid Margin="10 10 10 10" >            <Grid.RowDefinitions>                <RowDefinition Height="30"></RowDefinition>                <RowDefinition Height="55"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>                <RowDefinition Height="45"></RowDefinition>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="250"></ColumnDefinition>                <ColumnDefinition Width="130"></ColumnDefinition>                <ColumnDefinition Width="130"></ColumnDefinition>            </Grid.ColumnDefinitions>            <Label Content="APC Config" Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1"/>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1" Grid.Column="0" Grid.ColumnSpan="3">                <StackPanel Orientation="Horizontal">                    <Button  Content="Upload"  Foreground="{DynamicResource FG_Black}" FontSize="16" Height="40" Width="140" FontFamily="Arial" VerticalAlignment="Center" Margin="20,0,0,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetUpload">                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                    <Button  Content="Download"  Foreground="{DynamicResource FG_Black}" FontSize="16" Height="40" Width="140"  FontFamily="Arial" VerticalAlignment="Center" Margin="20,0,20,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetDownload">                                    <cal:Parameter Value="{Binding ElementName=tbValveStausThreshold}" />                                    <cal:Parameter Value="{Binding ElementName=tbSlowVacuumModeSetting}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock1}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock2}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock3}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlockConstantOfInterlock3}" />                                    <cal:Parameter Value="{Binding ElementName=tbP1SensorOffsetSetting}" />                                    <cal:Parameter Value="{Binding ElementName=tbPosMonOffsetSetting}" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                    <Button  Content="Save"  Foreground="{DynamicResource FG_Black}" FontSize="16" Height="40" Width="140"  FontFamily="Arial" VerticalAlignment="Center">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetConfig">                                    <cal:Parameter Value="{Binding ElementName=tbValveStausThreshold}" />                                    <cal:Parameter Value="{Binding ElementName=tbSlowVacuumModeSetting}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock1}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock2}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlock3}" />                                    <cal:Parameter Value="{Binding ElementName=tbInterlockConstantOfInterlock3}" />                                    <cal:Parameter Value="{Binding ElementName=tbP1SensorOffsetSetting}" />                                    <cal:Parameter Value="{Binding ElementName=tbPosMonOffsetSetting}" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </StackPanel>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">                <TextBlock Text="Valve Status Threshold" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">                <TextBlock Text="Slow Vacuum Mode Setting" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">                <TextBlock Text="Interlock1" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Padding="5,1">                <TextBlock Text="Interlock2" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Padding="5,1">                <TextBlock Text="Interlock3" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Padding="5,1">                <TextBlock Text="Interlock Constant Of Interlock3" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="8" Padding="5,1">                <TextBlock Text="P1 Sensor Offset Setting" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="9" Padding="5,1">                <TextBlock Text="Pos Mon Offset Setting" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding ValveStatusThreshold}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding SlowVacuumModeSetting}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding Interlock1}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding Interlock2}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding Interlock3}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding InterlockConstantOfInterlock3}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="8" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding P1SensorOffsetSetting}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}" Grid.Row="9" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding PosMonOffsetSetting}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" TextAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbValveStausThreshold" Text="{Binding ValveStausThresholdSet, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="3" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbSlowVacuumModeSetting" Text="{Binding SlowVacuumModeSettingSet, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="4" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbInterlock1" Text="{Binding Interlock1Set, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="5" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbInterlock2" Text="{Binding Interlock2Set, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="6" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbInterlock3" Text="{Binding Interlock3Set, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="7" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbInterlockConstantOfInterlock3" Text="{Binding InterlockConstantOfInterlock3Set, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="8" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbP1SensorOffsetSetting" Text="{Binding P1SensorOffsetSettingSet, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Column="2"  Grid.Row="9" Grid.ColumnSpan="2" Padding="5,1">                <ctrl:TextBoxEx x:Name="tbPosMonOffsetSetting" Text="{Binding PosMonOffsetSettingSet, Mode=OneTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="120" Height="30" >                </ctrl:TextBoxEx>            </Border>        </Grid>        <Button  Content="Close"  Style="{StaticResource CommandButton}" FontSize="16" Height="40" Width="140"  FontFamily="Arial" VerticalAlignment="Center" Canvas.Top="490" Canvas.Left="250">            <i:Interaction.Triggers>                <i:EventTrigger EventName="Click">                    <cal:ActionMessage MethodName="CloseCmd">                    </cal:ActionMessage>                </i:EventTrigger>            </i:Interaction.Triggers>        </Button>    </Canvas></UserControl>
 |