refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
@@ -0,0 +1,585 @@
|
||||
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.E84Info"
|
||||
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:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:commonControl="clr-namespace:MECF.Framework.UI.Core.CommonControl;assembly=MECF.Framework.UI.Core"
|
||||
xmlns:controls="clr-namespace:MECF.Framework.UI.Client.CenterViews.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="800" d:DesignWidth="1200" Background="#91b0cd">
|
||||
<Grid x:Name="root">
|
||||
<Border HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="Transparent">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="5*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="4*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderThickness="1"
|
||||
BorderBrush="#84a567" Height="310" Width="1120" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.9*" />
|
||||
<ColumnDefinition Width="1.35*" />
|
||||
<ColumnDefinition Width="1.21*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="LpBorder" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom" BorderThickness="1" BorderBrush="#84a567"
|
||||
Height="310" Width="290" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="Pod Loader Status" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="4*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="35" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Content="Pod Present:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="0" Grid.Column="1"
|
||||
On="{Binding E84Data.PodPresent}" />
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Pod Placed:"
|
||||
FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="1" Grid.Column="1"
|
||||
On="{Binding E84Data.PodPlaced}" />
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Pod Latched:"
|
||||
FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="2" Grid.Column="1"
|
||||
On="{Binding E84Data.PodLatched}" />
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="Pod Docked:"
|
||||
FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="3" Grid.Column="1"
|
||||
On="{Binding E84Data.PodDocked}" />
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="Pod Open:"
|
||||
FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="4" Grid.Column="1"
|
||||
On="{Binding E84Data.PodDocked}" />
|
||||
<Label Content="{Binding E84Data.LoadPortState}" Grid.Row="5"
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Column="0"
|
||||
BorderThickness="2" BorderBrush="White" Width="160"
|
||||
Height="30" FontSize="14"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Grid.Row="6" Grid.Column="0" Content="Virtual Mode:"
|
||||
FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="6" Grid.Column="1"
|
||||
On="{Binding E84Data.VirtualMode}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<WrapPanel Grid.Row="1">
|
||||
<Button Content="Place" x:Name="btnPlace" FontSize="14"
|
||||
Command="{Binding E84Command}"
|
||||
CommandParameter="E84Place"
|
||||
Width="80" Height="30" VerticalAlignment="Center"
|
||||
IsEnabled="False" />
|
||||
<Button Content="Pick" x:Name="btnPick" FontSize="14"
|
||||
Command="{Binding E84Command}"
|
||||
CommandParameter="E84Pick"
|
||||
Width="80" Height="30" VerticalAlignment="Center"
|
||||
IsEnabled="False" />
|
||||
<Button Content="Clamp" x:Name="btnClamp" FontSize="14"
|
||||
Command="{Binding E84Command}"
|
||||
CommandParameter="Clamp"
|
||||
Width="80" Height="30" VerticalAlignment="Center"
|
||||
IsEnabled="False" />
|
||||
</WrapPanel>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="310" Width="434" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="Load Port Status" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="205*" />
|
||||
<RowDefinition Height="143*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1"
|
||||
Margin="0,0,0,38" Grid.RowSpan="2">
|
||||
<Grid Margin="0,0,0,-31">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="1.7*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Content="Port Reserved:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="0" Grid.Column="1"
|
||||
On="{Binding E84Data.PodReserved}" Margin="5,0,10,0"
|
||||
Height="36" VerticalAlignment="Top" />
|
||||
<Label Grid.Row="1" Content="Port State:" FontSize="14"
|
||||
HorizontalContentAlignment="Right"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.PortState}" Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
BorderThickness="2" BorderBrush="White"
|
||||
FontSize="18" HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,4,0,4" Height="31" />
|
||||
<Label Grid.Row="2" Content="Carrier ID:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.CarrierID}" Grid.Row="2"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="18" Height="31"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,4,0,4" />
|
||||
<Label Grid.Row="3" Content="Slot Map:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.SlotMap}" Grid.Row="3"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="14"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Bottom" Height="32" Margin="5,0,0,2" />
|
||||
<Label Grid.Row="4" Content="Access Mode:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.AccessMode}" Grid.Row="4"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="14" Height="32"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,4,0,3" />
|
||||
<Label Grid.Row="5" Content="Access Status:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.AccessStatus}" Grid.Row="5"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="14" Height="33"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,4,0,2" />
|
||||
<Label Grid.Row="6" Grid.Column=" 0" Content="ID Status:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" Grid.ColumnSpan="1"
|
||||
Margin="0,8,0,0" Height="30" />
|
||||
<Label Content="{Binding E84Data.CarrierIDStatus}" Grid.Row="6"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="14" Height="33"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,3,0,3"
|
||||
Grid.ColumnSpan="1" />
|
||||
<Label Grid.Row="7" Content="Slot Map Status:"
|
||||
HorizontalContentAlignment="Right" FontSize="14"
|
||||
VerticalAlignment="Center" Grid.Column="0" Margin="0,8,0,0"
|
||||
Height="30" />
|
||||
<Label Content="{Binding E84Data.SlotMapStatus}" Grid.Row="7"
|
||||
Grid.Column="1" BorderThickness="2"
|
||||
BorderBrush="White" FontSize="14" Height="37"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalAlignment="Center" Margin="5,2,0,0" />
|
||||
<CheckBox Grid.Row="8" Content="Automatic Mode" IsChecked="false"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Left"
|
||||
FontSize="16" Margin="0,4,0,0" Height="26" Width="180" Grid.ColumnSpan="2">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Checked">
|
||||
<i:InvokeCommandAction Command="{Binding E84Command}"
|
||||
CommandParameter="SetAMHS" />
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="Unchecked">
|
||||
<i:InvokeCommandAction Command="{Binding E84Command}"
|
||||
CommandParameter="SetManual" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</CheckBox>
|
||||
<CheckBox Grid.Row="8" Content="In Service" IsChecked="false"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Left"
|
||||
FontSize="16" Margin="86,4,0,0" Height="26" Width="175" Grid.Column="1">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Checked">
|
||||
<i:InvokeCommandAction Command="{Binding E84Command}"
|
||||
CommandParameter="SetInService" />
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="Unchecked">
|
||||
<i:InvokeCommandAction Command="{Binding E84Command}"
|
||||
CommandParameter="SetOutService" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</CheckBox>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="ConfigBorder1" Grid.Column="1" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="310" Width="394"
|
||||
Margin="434,0,-1,0" Grid.ColumnSpan="2">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="Carrier ID Reader" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Border BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid Margin="0,-1,-1,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="169*" />
|
||||
<ColumnDefinition Width="210*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<commonControl:AITScBoolRow ScName="In Service" Grid.Row="0"
|
||||
Grid.ColumnSpan="3"
|
||||
ScId="LoadPort.CarrierIdReaderInUse"
|
||||
ScFeedback="True"
|
||||
ScSetPoint="True"
|
||||
NameWidth="185" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
IsEnabled="False" />
|
||||
<commonControl:AITScDoubleRow ScName="Data Read Size" Grid.Row="1"
|
||||
Grid.ColumnSpan="2" Grid.Column="0"
|
||||
ScId="LoadPort.DataReadSize"
|
||||
ScFeedback="{Binding ConfigFeedback.LoadPort_DataReadSize}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.LoadPort_DataReadSize}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="185" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60" />
|
||||
<commonControl:AITScDoubleRow ScName="Start Page" Grid.Row="2"
|
||||
Grid.ColumnSpan="2" Grid.Column="0"
|
||||
ScId="LoadPort.StartPage"
|
||||
ScFeedback="{Binding ConfigFeedback.LoadPort_StartPage}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.LoadPort_StartPage}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="185" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60" />
|
||||
<commonControl:AITScBoolRow ScName="Auto Read" Grid.Row="3"
|
||||
Grid.ColumnSpan="2" Grid.Column="0"
|
||||
ScId="LoadPort.EnableAutoCarrierIdRead"
|
||||
ScFeedback="{Binding ConfigFeedback.LoadPort.EnableAutoCarrierIdRead}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.LoadPort.EnableAutoCarrierIdRead}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="185" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60" />
|
||||
<commonControl:AITScDoubleRow ScName="Default Page" Grid.Row="4"
|
||||
Grid.ColumnSpan="2" Grid.Column="0"
|
||||
ScId="LoadPort.DefaultPage"
|
||||
ScFeedback="{Binding ConfigFeedback.LoadPort_DefaultPage}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.LoadPort_DefaultPage}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="185" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60" />
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderThickness="1"
|
||||
BorderBrush="#84a567" Height="80" Width="1120" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="E84 Status Monitor" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Border BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="3*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="1" Content="Status :" FontSize="14"
|
||||
HorizontalContentAlignment="Right" VerticalAlignment="Center" />
|
||||
<Label Content="{Binding E84Data.E84State}" Grid.Column="1"
|
||||
BorderThickness="2"
|
||||
BorderBrush="White" Width="400" FontSize="14"
|
||||
HorizontalContentAlignment="Center" VerticalAlignment="Center"
|
||||
Height="30" Margin="219,8,218,10" />
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderThickness="1"
|
||||
BorderBrush="#84a567" Height="250" Width="1120" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.32*" />
|
||||
<ColumnDefinition Width="1.32*" />
|
||||
<ColumnDefinition Width="1.32*" />
|
||||
<ColumnDefinition Width="1.26*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="Inputs" Grid.Column="0" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="250" Width="280" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="E84 Factory Inputs" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Border BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.9*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Content="Vaild:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="0" Grid.Column="1"
|
||||
On="{Binding E84Data.Valid}" />
|
||||
<Label Grid.Row="1" Content="Transfer Request:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="1" Grid.Column="1"
|
||||
On="{Binding E84Data.TransferRequest}" />
|
||||
<Label Grid.Row="2" Content="Busy:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="2" Grid.Column="1"
|
||||
On="{Binding E84Data.Busy}" />
|
||||
<Label Grid.Row="3" Content="Transfer Complete :" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="3" Grid.Column="1"
|
||||
On="{Binding E84Data.TransferComplete}" />
|
||||
<Label Grid.Row="4" Content="CS_0:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="4" Grid.Column="1"
|
||||
On="{Binding E84Data.CS0}" />
|
||||
<Label Grid.Row="5" Content="CS_1:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="5" Grid.Column="1"
|
||||
On="False" />
|
||||
<Label Grid.Row="6" Content="Continuous Transfer:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="6" Grid.Column="1"
|
||||
On="{Binding E84Data.ContinuousTransfer}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="Outputs" Grid.Column="1" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="250" Width="280" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="E84 Factory Outputs" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="3*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.9*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Content="Load Request:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="0" Grid.Column="1"
|
||||
On="{Binding E84Data.LoadRequest}" />
|
||||
<Label Grid.Row="1" Content="Unload Request:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="1" Grid.Column="1"
|
||||
On="{Binding E84Data.UnloadRequest}" />
|
||||
<Label Grid.Row="2" Content="Ready to Transfer:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="2" Grid.Column="1"
|
||||
On="{Binding E84Data.ReadyToTransfer}" />
|
||||
<Label Grid.Row="3" Content="Handoff Available:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="3" Grid.Column="1"
|
||||
On="{Binding E84Data.HandoffAvailable}" />
|
||||
<Label Grid.Row="4" Content="Emergency Stop OK:" FontSize="14"
|
||||
HorizontalContentAlignment="Right" />
|
||||
<controls:LED Grid.Row="4" Grid.Column="1"
|
||||
On="{Binding E84Data.EmergencyOk}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<CheckBox Content="Error on Placement Timeout" IsChecked="True"
|
||||
IsEnabled="False"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
FontSize="14" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border x:Name="ConfigBorder" Grid.Column="2" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="250" Width="280" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="TimeOut Settings" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Border BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="95*" />
|
||||
<ColumnDefinition Width="181*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
<commonControl:AITScDoubleRow ScName="TP1 (sec)" Grid.Row="0"
|
||||
ScId="Fa.E84.TP1"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP1}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP1}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
<commonControl:AITScDoubleRow ScName="TP2 (sec)" Grid.Row="1"
|
||||
ScId="Fa.E84.TP2"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP2}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP2}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
<commonControl:AITScDoubleRow ScName="TP3 (sec)" Grid.Row="2"
|
||||
ScId="Fa.E84.TP3"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP3}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP3}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
<commonControl:AITScDoubleRow ScName="TP4(sec)" Grid.Row="3"
|
||||
ScId="Fa.E84.TP4"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP4}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP4}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
<commonControl:AITScDoubleRow ScName="TP5(sec)" Grid.Row="4"
|
||||
ScId="Fa.E84.TP5"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP5}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP5}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
<commonControl:AITScDoubleRow ScName="TP6(sec)" Grid.Row="5"
|
||||
ScId="Fa.E84.TP6"
|
||||
ScFeedback="{Binding ConfigFeedback.Fa_E84_TP6}"
|
||||
ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP6}"
|
||||
Command="{Binding SetConfigCommand}"
|
||||
NameWidth="75" FeedbackWidth="70"
|
||||
SetPointWidth="70" CommandWidth="60"
|
||||
Grid.ColumnSpan="2" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Bottom"
|
||||
BorderThickness="1" BorderBrush="#84a567" Height="250" Width="272" Margin="0">
|
||||
<DockPanel Background="#d6f1ff">
|
||||
<Label Content="Error Recovery" HorizontalContentAlignment="Center"
|
||||
DockPanel.Dock="Top" Background="#7fc7ed" Height="30" FontSize="14"/>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Retry" x:Name="btnRetry" Grid.Row="1" FontSize="14"
|
||||
Width="100" Height="30" VerticalAlignment="Center"
|
||||
Command="{Binding E84Command}"
|
||||
CommandParameter="E84Retry" />
|
||||
<Button Content="Complete" x:Name="btnComplete" Grid.Row="2" FontSize="14"
|
||||
Width="100" Height="30" VerticalAlignment="Center"
|
||||
Command="{Binding E84Command}"
|
||||
CommandParameter="E84Complete" />
|
||||
<Border Grid.Row="3" BorderBrush="Gray" BorderThickness="1">
|
||||
<Grid >
|
||||
<CheckBox Content="Error on access mode violation"
|
||||
IsChecked="False" VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center" FontSize="14"
|
||||
IsEnabled="False" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,472 @@
|
||||
using System.ComponentModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using Aitex.Core.UI.MVVM;
|
||||
using Aitex.Core.Util;
|
||||
using Aitex.Core.Utilities;
|
||||
using MECF.Framework.Common.DataCenter;
|
||||
using MECF.Framework.Common.OperationCenter;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
using MECF.Framework.UI.Core.View.Common;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Controls
|
||||
{
|
||||
public partial class E84Info : UserControl
|
||||
{
|
||||
public static readonly DependencyProperty LoadPortNameProperty = DependencyProperty.Register(
|
||||
"LoadPortName", typeof(string), typeof(E84Info), new
|
||||
PropertyMetadata(""));
|
||||
|
||||
public static readonly DependencyProperty E84DataProperty = DependencyProperty.Register(
|
||||
"E84Data", typeof(E84InfoData), typeof(E84Info), new PropertyMetadata(null));
|
||||
|
||||
private readonly E84InfoViewModel _e84InfoViewModel;
|
||||
|
||||
public E84Info()
|
||||
{
|
||||
InitializeComponent();
|
||||
root.DataContext = this;
|
||||
_e84InfoViewModel = new E84InfoViewModel();
|
||||
ConfigBorder.DataContext = _e84InfoViewModel;
|
||||
ConfigBorder1.DataContext = _e84InfoViewModel;
|
||||
|
||||
Inputs.DataContext = this;
|
||||
Outputs.DataContext = this;
|
||||
//BindingErrorTraceListener.SetTrace();
|
||||
E84Command = new DelegateCommand<string>(DoLoadPortCmd);
|
||||
IsVisibleChanged += E84Info_IsVisibleChanged;
|
||||
}
|
||||
|
||||
public ICommand E84Command { get; set; }
|
||||
|
||||
public string LoadPortName
|
||||
{
|
||||
get => (string) GetValue(LoadPortNameProperty);
|
||||
set => SetValue(LoadPortNameProperty, value);
|
||||
}
|
||||
|
||||
public E84InfoData E84Data
|
||||
{
|
||||
get => (E84InfoData) GetValue(E84DataProperty);
|
||||
set => SetValue(E84DataProperty, value);
|
||||
}
|
||||
|
||||
private void DoLoadPortCmd(string cmd)
|
||||
{
|
||||
var deviceName = LoadPortName;
|
||||
var param = new object[] {deviceName};
|
||||
InvokeClient.Instance.Service.DoOperation($"{param[0]}.{cmd}");
|
||||
}
|
||||
|
||||
private void E84Info_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
(DataContext as E84InfoViewModel)?.EnableTimer(IsVisible);
|
||||
}
|
||||
}
|
||||
|
||||
internal class E84InfoViewModel : UiViewModelBase
|
||||
{
|
||||
public E84InfoViewModel()
|
||||
{
|
||||
SetConfigCommand = new DelegateCommand<object>(SetConfig);
|
||||
ConfigFeedback = new E84SCs();
|
||||
ConfigSetPoint = new E84SCs();
|
||||
ConfigFeedback.UpdateKeys(typeof(E84SCs).GetProperties());
|
||||
ConfigSetPoint.UpdateKeys(typeof(E84SCs).GetProperties());
|
||||
UpdateConfig();
|
||||
}
|
||||
|
||||
[IgnorePropertyChange] public ICommand SetConfigCommand { get; }
|
||||
[IgnorePropertyChange] public E84SCs ConfigFeedback { get; set; }
|
||||
|
||||
[IgnorePropertyChange] public E84SCs ConfigSetPoint { get; set; }
|
||||
|
||||
public bool AutomaticMode { get; set; }
|
||||
public bool KeepClampedAfterRun { get; set; }
|
||||
public bool KeepDockAfterRun { get; set; }
|
||||
public bool CloseDoorAfterMap { get; set; }
|
||||
|
||||
[Subscription("E84State")] public string E84Status { get; set; }
|
||||
|
||||
|
||||
private void SetConfig(object param)
|
||||
{
|
||||
var sc = (object[]) param;
|
||||
InvokeClient.Instance.Service.DoOperation("System.SetConfig", sc[0].ToString(), sc[1].ToString());
|
||||
UpdateConfig();
|
||||
}
|
||||
|
||||
public void UpdateConfig()
|
||||
{
|
||||
ConfigFeedback.Update(QueryDataClient.Instance.Service.PollConfig(ConfigFeedback.GetKeys()));
|
||||
ConfigSetPoint.Update(QueryDataClient.Instance.Service.PollConfig(ConfigSetPoint.GetKeys()));
|
||||
Refresh();
|
||||
}
|
||||
|
||||
protected override void Poll()
|
||||
{
|
||||
Refresh();
|
||||
base.Poll();
|
||||
}
|
||||
}
|
||||
|
||||
public class E84SCs : PageSCValue
|
||||
{
|
||||
public int Fa_E84_TP1 { get; set; }
|
||||
public int Fa_E84_TP2 { get; set; }
|
||||
public int Fa_E84_TP3 { get; set; }
|
||||
public int Fa_E84_TP4 { get; set; }
|
||||
public int Fa_E84_TP5 { get; set; }
|
||||
public int Fa_E84_TP6 { get; set; }
|
||||
public bool LoadPort_CarrierIDReaderInUse { get; set; }
|
||||
public int LoadPort_DataReadSize { get; set; }
|
||||
public int LoadPort_StartPage { get; set; }
|
||||
public int LoadPort_DefaultPage { get; set; }
|
||||
}
|
||||
|
||||
public class E84InfoData : INotifyPropertyChanged
|
||||
{
|
||||
private bool _busy;
|
||||
private string _carrierId;
|
||||
private bool _continuousTransfer;
|
||||
private bool _cs0;
|
||||
private bool _cs1;
|
||||
private string _e84State;
|
||||
private bool _emergencyOk;
|
||||
private bool _errorOnPlacementTimeout;
|
||||
private bool _handoffAvailable;
|
||||
|
||||
private string _loadPortState;
|
||||
private string _AccessMode;
|
||||
|
||||
//Factory Outputs
|
||||
private bool _loadRequest;
|
||||
private bool _podDocked;
|
||||
|
||||
private bool _podLatched;
|
||||
private bool _podOpen;
|
||||
|
||||
private bool _podPlaced;
|
||||
private bool _podReserved;
|
||||
private string _portState;
|
||||
private bool _potPresent;
|
||||
private bool _readyToTransfer;
|
||||
private string _slotMap;
|
||||
private bool _transferComplete;
|
||||
private bool _transferRequest;
|
||||
|
||||
private bool _unloadRequest;
|
||||
|
||||
//Factory Inputs
|
||||
private bool _valid;
|
||||
private bool _virtualMode;
|
||||
private string _carrierIDStatus;
|
||||
public string CarrierIDStatus
|
||||
{
|
||||
get => _carrierIDStatus;
|
||||
set
|
||||
{
|
||||
_carrierIDStatus = value;
|
||||
OnPropertyChanged("CarrierIDStatus");
|
||||
}
|
||||
}
|
||||
private string _slotmapStatus;
|
||||
public string SlotMapStatus
|
||||
{
|
||||
get => _slotmapStatus;
|
||||
set
|
||||
{
|
||||
_slotmapStatus = value;
|
||||
OnPropertyChanged("SlotMapStatus");
|
||||
}
|
||||
}
|
||||
private string _accessStatus;
|
||||
public string AccessStatus
|
||||
{
|
||||
get => _accessStatus;
|
||||
set
|
||||
{
|
||||
_accessStatus = value;
|
||||
OnPropertyChanged("AccessStatus");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public bool PodPresent
|
||||
{
|
||||
get => _potPresent;
|
||||
set
|
||||
{
|
||||
_potPresent = value;
|
||||
OnPropertyChanged("PodPresent");
|
||||
}
|
||||
}
|
||||
|
||||
public bool PodPlaced
|
||||
{
|
||||
get => _podPlaced;
|
||||
set
|
||||
{
|
||||
_podPlaced = value;
|
||||
OnPropertyChanged("PodPlaced");
|
||||
}
|
||||
}
|
||||
|
||||
public bool PodLatched
|
||||
{
|
||||
get => _podLatched;
|
||||
set
|
||||
{
|
||||
_podLatched = value;
|
||||
OnPropertyChanged("PodLatched");
|
||||
}
|
||||
}
|
||||
|
||||
public bool PodDocked
|
||||
{
|
||||
get => _podDocked;
|
||||
set
|
||||
{
|
||||
_podDocked = value;
|
||||
OnPropertyChanged("PodDocked");
|
||||
}
|
||||
}
|
||||
|
||||
public bool PodOpen
|
||||
{
|
||||
get => _podOpen;
|
||||
set
|
||||
{
|
||||
_podOpen = value;
|
||||
OnPropertyChanged("PodOpen");
|
||||
}
|
||||
}
|
||||
|
||||
public string LoadPortState
|
||||
{
|
||||
get => $"_{_loadPortState}";
|
||||
set
|
||||
{
|
||||
_loadPortState = value;
|
||||
OnPropertyChanged("LoadPortState");
|
||||
}
|
||||
}
|
||||
|
||||
public string AccessMode
|
||||
{
|
||||
get => $"_{_AccessMode}";
|
||||
set
|
||||
{
|
||||
_AccessMode = value;
|
||||
OnPropertyChanged("AccessMode");
|
||||
}
|
||||
}
|
||||
|
||||
public bool VirtualMode
|
||||
{
|
||||
get => _virtualMode;
|
||||
set
|
||||
{
|
||||
_virtualMode = value;
|
||||
OnPropertyChanged("VirtualMode");
|
||||
}
|
||||
}
|
||||
|
||||
public bool PodReserved
|
||||
{
|
||||
get => _podReserved;
|
||||
set
|
||||
{
|
||||
_podReserved = value;
|
||||
OnPropertyChanged("PodReserved");
|
||||
}
|
||||
}
|
||||
|
||||
public string PortState
|
||||
{
|
||||
get =>$"_{_portState}";
|
||||
set
|
||||
{
|
||||
_portState = value;
|
||||
OnPropertyChanged("PortState");
|
||||
}
|
||||
}
|
||||
|
||||
public string CarrierID
|
||||
{
|
||||
get => _carrierId;
|
||||
set
|
||||
{
|
||||
_carrierId = value;
|
||||
OnPropertyChanged("CarrierID");
|
||||
}
|
||||
}
|
||||
|
||||
public string SlotMap
|
||||
{
|
||||
get => _slotMap;
|
||||
set
|
||||
{
|
||||
_slotMap = value;
|
||||
OnPropertyChanged("SlotMap");
|
||||
}
|
||||
}
|
||||
|
||||
public bool Valid
|
||||
{
|
||||
get => _valid;
|
||||
set
|
||||
{
|
||||
_valid = value;
|
||||
OnPropertyChanged("Valid");
|
||||
}
|
||||
}
|
||||
|
||||
public bool TransferRequest
|
||||
{
|
||||
get => _transferRequest;
|
||||
set
|
||||
{
|
||||
_transferRequest = value;
|
||||
OnPropertyChanged("TransferRequest");
|
||||
}
|
||||
}
|
||||
|
||||
public bool Busy
|
||||
{
|
||||
get => _busy;
|
||||
set
|
||||
{
|
||||
_busy = value;
|
||||
OnPropertyChanged("Busy");
|
||||
}
|
||||
}
|
||||
|
||||
public bool TransferComplete
|
||||
{
|
||||
get => _transferComplete;
|
||||
set
|
||||
{
|
||||
_transferComplete = value;
|
||||
OnPropertyChanged("TransferComplete");
|
||||
}
|
||||
}
|
||||
|
||||
public bool CS0
|
||||
{
|
||||
get => _cs0;
|
||||
set
|
||||
{
|
||||
_cs0 = value;
|
||||
OnPropertyChanged("CS0");
|
||||
}
|
||||
}
|
||||
|
||||
public bool CS1
|
||||
{
|
||||
get => _cs1;
|
||||
set
|
||||
{
|
||||
_cs1 = value;
|
||||
OnPropertyChanged("CS1");
|
||||
}
|
||||
}
|
||||
|
||||
public bool ContinuousTransfer
|
||||
{
|
||||
get => _continuousTransfer;
|
||||
set
|
||||
{
|
||||
_continuousTransfer = value;
|
||||
OnPropertyChanged("ContinuousTransfer");
|
||||
}
|
||||
}
|
||||
|
||||
public bool LoadRequest
|
||||
{
|
||||
get => _loadRequest;
|
||||
set
|
||||
{
|
||||
_loadRequest = value;
|
||||
OnPropertyChanged("LoadRequest");
|
||||
}
|
||||
}
|
||||
|
||||
public bool UnloadRequest
|
||||
{
|
||||
get => _unloadRequest;
|
||||
set
|
||||
{
|
||||
_unloadRequest = value;
|
||||
OnPropertyChanged("UnloadRequest");
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReadyToTransfer
|
||||
{
|
||||
get => _readyToTransfer;
|
||||
set
|
||||
{
|
||||
_readyToTransfer = value;
|
||||
OnPropertyChanged("ReadyToTransfer");
|
||||
}
|
||||
}
|
||||
|
||||
public bool HandoffAvailable
|
||||
{
|
||||
get => _handoffAvailable;
|
||||
set
|
||||
{
|
||||
_handoffAvailable = value;
|
||||
OnPropertyChanged("HandoffAvailable");
|
||||
}
|
||||
}
|
||||
|
||||
public bool EmergencyOk
|
||||
{
|
||||
get => _emergencyOk;
|
||||
set
|
||||
{
|
||||
_emergencyOk = value;
|
||||
OnPropertyChanged("EmergencyOk");
|
||||
}
|
||||
}
|
||||
|
||||
public bool ErrorOnPlacementTimeout
|
||||
{
|
||||
get => _errorOnPlacementTimeout;
|
||||
set
|
||||
{
|
||||
_errorOnPlacementTimeout = value;
|
||||
OnPropertyChanged("ErrorOnPlacementTimeout");
|
||||
}
|
||||
}
|
||||
|
||||
public string E84State
|
||||
{
|
||||
get => _e84State;
|
||||
set
|
||||
{
|
||||
_e84State = value;
|
||||
OnPropertyChanged("E84State");
|
||||
}
|
||||
}
|
||||
|
||||
#region INotifyPropertyChanged Members
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void OnPropertyChanged(string propertyName)
|
||||
{
|
||||
PropertyChangedEventHandler handler = this.PropertyChanged;
|
||||
if (handler != null)
|
||||
handler(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.LED"
|
||||
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:controls="clr-namespace:MECF.Framework.UI.Client.CenterViews.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<UserControl.Resources>
|
||||
<controls:LedConverter x:Key="ledConverter" />
|
||||
</UserControl.Resources>
|
||||
<Grid x:Name="root">
|
||||
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Gray" StrokeThickness="2" Width="15"
|
||||
Height="15">
|
||||
<Ellipse.Fill>
|
||||
<MultiBinding Converter="{StaticResource ledConverter}">
|
||||
<Binding Path="On" />
|
||||
<Binding Path="IsRed" />
|
||||
</MultiBinding>
|
||||
</Ellipse.Fill>
|
||||
</Ellipse>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Controls
|
||||
{
|
||||
public partial class LED : UserControl
|
||||
{
|
||||
// Using a DependencyProperty as the backing store for On. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty OnProperty =
|
||||
DependencyProperty.Register("On", typeof(bool), typeof(LED), new PropertyMetadata(false));
|
||||
|
||||
// Using a DependencyProperty as the backing store for IsRed. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty IsRedProperty =
|
||||
DependencyProperty.Register("IsRed", typeof(bool), typeof(LED), new PropertyMetadata(false));
|
||||
|
||||
public LED()
|
||||
{
|
||||
InitializeComponent();
|
||||
root.DataContext = this;
|
||||
}
|
||||
|
||||
public bool On
|
||||
{
|
||||
get => (bool) GetValue(OnProperty);
|
||||
set => SetValue(OnProperty, value);
|
||||
}
|
||||
|
||||
public bool IsRed
|
||||
{
|
||||
get => (bool) GetValue(IsRedProperty);
|
||||
set => SetValue(IsRedProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public class LedConverter : IMultiValueConverter
|
||||
{
|
||||
static Brush GreenBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF07FF07"));
|
||||
static Brush GrayBrush = new SolidColorBrush(Colors.LightGray);
|
||||
static Brush RedBrush = new SolidColorBrush(Colors.Red);
|
||||
|
||||
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
var value = (bool)values[0];
|
||||
var red = (bool)values[1];
|
||||
return value ? red ? RedBrush : GreenBrush : GrayBrush;
|
||||
}
|
||||
|
||||
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.ScDoubleRow"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
x:Name="self"
|
||||
d:DesignHeight="30" d:DesignWidth="450">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=NameWidth }" />
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=FeedbackWidth }" />
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=SetPointWidth }" />
|
||||
<ColumnDefinition Width="60" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Rectangle Grid.Column="0" Fill="{DynamicResource Table_BG_Title}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="0" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1"></Border>
|
||||
<TextBlock Grid.Column="0" TextAlignment="Left" VerticalAlignment="Center" FontSize="13" Text="{Binding ElementName=self, Path=ScName }" Foreground="Black" Margin="10,0" />
|
||||
|
||||
<Rectangle Grid.Column="1" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="1" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<TextBlock Grid.Column="1" TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=FeedbackWidth }" Text="{Binding ElementName=self,Path=ScFeedback, StringFormat={}{0:F0}}" Margin="10,0"/>
|
||||
|
||||
<Rectangle Grid.Column="2" Fill="{DynamicResource Table_BG_Content}" x:Name="RectangleSetPoint" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="2" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<TextBox Grid.Column="2" Margin="5,3" PreviewTextInput="OnPreviewTextInput" x:Name="InputSetPoint" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=SetPointWidth }" Text="{Binding ElementName=self,Path=ScSetPoint}" />
|
||||
|
||||
<Rectangle Grid.Column="3" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="3" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<Button Grid.Column="3" Content="Set" VerticalAlignment="Center" FontSize="13" Width="50" Height="22" Margin="2" Click="Button_Click"/>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// AITSCRow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ScDoubleRow : UserControl
|
||||
{
|
||||
public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(
|
||||
"Command", typeof(ICommand), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public ICommand Command
|
||||
{
|
||||
get
|
||||
{
|
||||
return (ICommand)this.GetValue(CommandProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(CommandProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static readonly DependencyProperty NameWidthProperty = DependencyProperty.Register(
|
||||
"NameWidth", typeof(int), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(180, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int NameWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(NameWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(NameWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty FeedbackWidthProperty = DependencyProperty.Register(
|
||||
"FeedbackWidth", typeof(int), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int FeedbackWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(FeedbackWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(FeedbackWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty SetPointWidthProperty = DependencyProperty.Register(
|
||||
"SetPointWidth", typeof(int), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int SetPointWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(SetPointWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(SetPointWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty CommandWidthProperty = DependencyProperty.Register(
|
||||
"CommandWidth", typeof(int), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int CommandWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(CommandWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(CommandWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScIdProperty = DependencyProperty.Register(
|
||||
"ScId", typeof(string), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public string ScId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.GetValue(ScIdProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScIdProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScNameProperty = DependencyProperty.Register(
|
||||
"ScName", typeof(string), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public string ScName
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.GetValue(ScNameProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScNameProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScFeedbackProperty = DependencyProperty.Register(
|
||||
"ScFeedback", typeof(double), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public double ScFeedback
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)this.GetValue(ScFeedbackProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScFeedbackProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScSetPointProperty = DependencyProperty.Register(
|
||||
"ScSetPoint", typeof(double), typeof(ScDoubleRow),
|
||||
new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public double ScSetPoint
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)this.GetValue(ScSetPointProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScSetPointProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ScDoubleRow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void OnPreviewTextInput(object sender, TextCompositionEventArgs e)
|
||||
{
|
||||
e.Handled = !IsTextAllowed(e.Text);
|
||||
}
|
||||
|
||||
protected override void OnRender(DrawingContext drawingContext)
|
||||
{
|
||||
base.OnRender(drawingContext);
|
||||
|
||||
RectangleSetPoint.Fill = Math.Abs(ScSetPoint - ScFeedback) < 0.001
|
||||
? new SolidColorBrush(Color.FromRgb(0x95, 0xB3, 0xD7))
|
||||
: new SolidColorBrush(Colors.Yellow);
|
||||
|
||||
InputSetPoint.Background = Math.Abs(ScSetPoint - ScFeedback) < 0.001
|
||||
? new SolidColorBrush(Color.FromRgb(0xDC, 0xF7, 0xF6))
|
||||
: new SolidColorBrush(Colors.Yellow);
|
||||
}
|
||||
|
||||
|
||||
private static bool IsTextAllowed(string text)
|
||||
{
|
||||
Regex regex = new Regex("[^0-9.-]+"); //regex that matches disallowed text
|
||||
return !regex.IsMatch(text);
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Command.Execute(new object[] { ScId, ScSetPoint.ToString()});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.ScStringRow"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
x:Name="self"
|
||||
d:DesignHeight="30" d:DesignWidth="450">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=NameWidth }" />
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=FeedbackWidth }" />
|
||||
<ColumnDefinition Width="{Binding ElementName=self,Path=SetPointWidth }" />
|
||||
<ColumnDefinition Width="60" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Rectangle Grid.Column="0" Fill="{DynamicResource Table_BG_Title}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="0" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1"></Border>
|
||||
<TextBlock Grid.Column="0" TextAlignment="Left" VerticalAlignment="Center" FontSize="13" Text="{Binding ElementName=self, Path=ScName }" Foreground="Black" Margin="10,0" />
|
||||
|
||||
<Rectangle Grid.Column="1" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="1" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<TextBlock Grid.Column="1" TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=FeedbackWidth }" Text="{Binding ElementName=self,Path=ScFeedback}" Margin="10,0"/>
|
||||
|
||||
<Rectangle Grid.Column="2" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="2" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<TextBox Grid.Column="2" Margin="5,3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=SetPointWidth }" Text="{Binding ElementName=self,Path=ScSetPoint}" />
|
||||
|
||||
<Rectangle Grid.Column="3" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
|
||||
<Border Grid.Column="3" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
|
||||
<Button Grid.Column="3" Content="Set" VerticalAlignment="Center" FontSize="13" Width="50" Height="22" Margin="2" Click="Button_Click"/>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,161 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// AITSCRow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ScStringRow : UserControl
|
||||
{
|
||||
public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(
|
||||
"Command", typeof(ICommand), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public ICommand Command
|
||||
{
|
||||
get
|
||||
{
|
||||
return (ICommand)this.GetValue(CommandProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(CommandProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static readonly DependencyProperty NameWidthProperty = DependencyProperty.Register(
|
||||
"NameWidth", typeof(int), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata(180, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int NameWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(NameWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(NameWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty FeedbackWidthProperty = DependencyProperty.Register(
|
||||
"FeedbackWidth", typeof(int), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int FeedbackWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(FeedbackWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(FeedbackWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty SetPointWidthProperty = DependencyProperty.Register(
|
||||
"SetPointWidth", typeof(int), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int SetPointWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(SetPointWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(SetPointWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty CommandWidthProperty = DependencyProperty.Register(
|
||||
"CommandWidth", typeof(int), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata(90, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public int CommandWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.GetValue(CommandWidthProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(CommandWidthProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScIdProperty = DependencyProperty.Register(
|
||||
"ScId", typeof(string), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public string ScId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.GetValue(ScIdProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScIdProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScNameProperty = DependencyProperty.Register(
|
||||
"ScName", typeof(string), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public string ScName
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.GetValue(ScNameProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScNameProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScFeedbackProperty = DependencyProperty.Register(
|
||||
"ScFeedback", typeof(string), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata("127.0.0.1", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public double ScFeedback
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)this.GetValue(ScFeedbackProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScFeedbackProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ScSetPointProperty = DependencyProperty.Register(
|
||||
"ScSetPoint", typeof(string), typeof(ScStringRow),
|
||||
new FrameworkPropertyMetadata("127.0.0.1", FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
public string ScSetPoint
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.GetValue(ScSetPointProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ScSetPointProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ScStringRow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Command.Execute(new object[] { ScId, ScSetPoint.ToString()});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user