| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <UserControl
- x:Class="SHJX.Service.Shell.Views.Manual.LiquidManualWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:CustomUI="clr-namespace:CustomUI;assembly=SHJX.Service.Library"
- xmlns:ManualControl="clr-namespace:SHJX.Service.Library.Views.ManualControl;assembly=SHJX.Service.Library"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- d:DesignHeight="800"
- d:DesignWidth="900"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <GroupBox
- Grid.Row="0"
- Width="800"
- Height="200"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="5"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="液体控制(s)">
- <UniformGrid Columns="5" Rows="1">
- <ManualControl:ManualSettingControl
- HeaderValue="氢氧化钠(加液)"
- LeftButtonVisibility="Hidden"
- RightButtonCommand="{Binding RegisterLiquidCommand}"
- RightButtonContent="泵液" />
-
- <ManualControl:ManualSettingControl
- HeaderValue="硫酸(滴定1)"
- LeftButtonVisibility="Hidden"
- RightButtonCommand="{Binding RegisterLiquidCommand}"
- RightButtonContent="泵液" />
- <ManualControl:ManualSettingControl
- HeaderValue="硫酸(加液滴定2)"
- LeftButtonVisibility="Hidden"
- RightButtonCommand="{Binding RegisterLiquidCommand}"
- RightButtonContent="泵液" />
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Grid.Row="1"
- Width="800"
- Height="200"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="5"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
-
- Header="液体控制(pps)">
- <UniformGrid Columns="5" Rows="1">
-
- <ManualControl:ManualSettingControl
- HeaderValue="草酸钠(滴定1)"
- LeftButtonCommand="{Binding InLiquidCommand}"
- LeftButtonContent="吸液"
- LeftButtonWait="{Binding Sodium1OxalateInLiquidWait}"
- RightButtonCommand="{Binding OutLiquidCommand}"
- RightButtonContent="泵液"
- RightButtonWait="{Binding Sodium1OxalateOutLiquidWait}" />
- <ManualControl:ManualSettingControl
- HeaderValue="草酸钠(滴定2)"
- LeftButtonCommand="{Binding InLiquidCommand}"
- LeftButtonContent="吸液"
- LeftButtonWait="{Binding Sodium2OxalateInLiquidWait}"
- RightButtonCommand="{Binding OutLiquidCommand}"
- RightButtonContent="泵液"
- RightButtonWait="{Binding Sodium2OxalateOutLiquidWait}" />
-
- <ManualControl:ManualSettingControl
- HeaderValue="高锰酸钾(滴定1)"
- LeftButtonCommand="{Binding InLiquidCommand}"
- LeftButtonContent="吸液"
- LeftButtonWait="{Binding Titration1PotassiumPermanganateInLiquidWait}"
- RightButtonCommand="{Binding OutLiquidCommand}"
- RightButtonContent="泵液"
- RightButtonWait="{Binding Titration1PotassiumPermanganateOutLiquidWait}" />
- <ManualControl:ManualSettingControl
- HeaderValue="高锰酸钾(加液滴定2)"
- LeftButtonCommand="{Binding InLiquidCommand}"
- LeftButtonContent="吸液"
- LeftButtonWait="{Binding Titration2PotassiumPermanganateInLiquidWait}"
- RightButtonCommand="{Binding OutLiquidCommand}"
- RightButtonContent="泵液"
- RightButtonWait="{Binding Titration2PotassiumPermanganateOutLiquidWait}" />
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Grid.Row="2"
- Width="800"
- Height="200"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="其他控制">
- <StackPanel Orientation="Horizontal">
- <GroupBox
- Width="180"
- Height="120"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="转向滴嘴">
- <UniformGrid Columns="3" Rows="1">
- <Button
- Width="36"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding DropperFrontCommand}"
- Content="正"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF"
- CommandParameter="正" >
- </Button>
- <Button
- Width="36"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding DropperInversionCommand}"
- Content="反"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF"
- CommandParameter="反" >
- </Button>
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding DropperPointCommand}"
- Content="原点"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF"
- CommandParameter="原点" >
- </Button>
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Width="200"
- Height="120"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="平移滴嘴">
- <UniformGrid Columns="3" Rows="1">
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding MoveToYDCommand}"
- Content="原点"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- </Button>
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding MoveToDD2Command}"
- Content="滴定2"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- </Button>
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding MoveToJYCommand}"
- Content="加液"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- </Button>
- </UniformGrid>
- </GroupBox>
- <GroupBox
- Width="200"
- Height="120"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="搅拌">
- <UniformGrid Columns="1" Rows="2">
- <CustomUI:SegmentControl
- x:Name="cb_stir"
- Width="180"
- Height="30"
- HorizontalAlignment="Center"
- BorderBrush="#6452A4"
- Cursor="Hand"
- SelectedIndex="0">
- <CustomUI:SegmentItem Content="加液" Width="60" FontSize="13" />
- <CustomUI:SegmentItem Content="滴定" Width="60" FontSize="13" />
- <CustomUI:SegmentItem Content="滴定2" Width="60" FontSize="13" />
- </CustomUI:SegmentControl>
- <UniformGrid Columns="2" Rows="1">
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding StirStartCommand}"
- Content="开始"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- <Button.CommandParameter>
- <Binding ElementName="cb_stir" Path="SelectedItem.Content" />
- </Button.CommandParameter>
- </Button>
- <Button
- Width="50"
- Height="28"
- Margin="5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="5"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding StirStopCommand}"
- Content="结束"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF">
- <Button.CommandParameter>
- <Binding ElementName="cb_stir" Path="SelectedItem.Content" />
- </Button.CommandParameter>
- </Button>
- </UniformGrid>
- </UniformGrid>
- </GroupBox>
- </StackPanel>
- </GroupBox>
- </Grid>
- </UserControl>
|