|
@@ -0,0 +1,226 @@
|
|
|
+<UserControl x:Class="Venus_MainPages.Views.KeplerPartialPressureView"
|
|
|
+ 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:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
|
+ xmlns:local="clr-namespace:Venus_MainPages.Views"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ xmlns:unity="clr-namespace:Venus_MainPages.Unity"
|
|
|
+ xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
+ xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Loaded">
|
|
|
+ <i:InvokeCommandAction Command="{Binding LoadCommand}"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <UserControl.Resources>
|
|
|
+ <sys:String x:Key="Module">PMA</sys:String>
|
|
|
+ </UserControl.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="2*" />
|
|
|
+ <ColumnDefinition Width="6*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Canvas>
|
|
|
+ <TextBlock Text="Flow Time:" Canvas.Left="10" Canvas.Top="120" FontSize="15"/>
|
|
|
+ <TextBox FontSize="15" Canvas.Left="92" Canvas.Top="120" Width="80" Text="{Binding GasTime,UpdateSourceTrigger=PropertyChanged}" BorderThickness="0,0,0,1" Background="Transparent" BorderBrush="Black" HorizontalContentAlignment="Center"/>
|
|
|
+ <TextBlock FontSize="15" Canvas.Left="176" Canvas.Top="120" Text="(s)"/>
|
|
|
+
|
|
|
+ <TextBlock Text="Gas Name:" Canvas.Left="10" Canvas.Top="160" FontSize="15"/>
|
|
|
+ <TextBlock Text="{Binding GasName}" Canvas.Left="90" Canvas.Top="160" FontSize="15"/>
|
|
|
+ <RadioButton Content="Gas1" Canvas.Left="20" Canvas.Top="200" FontSize="15" IsChecked="True">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="1"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas2" Canvas.Left="20" Canvas.Top="240" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="2"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas3" Canvas.Left="20" Canvas.Top="280" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="3"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas4" Canvas.Left="20" Canvas.Top="320" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="4"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas5" Canvas.Left="20" Canvas.Top="360" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="5"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas6" Canvas.Left="20" Canvas.Top="400" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="6"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas7" Canvas.Left="20" Canvas.Top="440" FontSize="15" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="7"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton Content="Gas8" Canvas.Left="20" Canvas.Top="480" FontSize="15">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SelectGasCommand}"
|
|
|
+ CommandParameter="8"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+
|
|
|
+ <customControls:PathButton Content="Start" Canvas.Left="10" Canvas.Top="700" Width="90" Height="25" Command="{Binding StartCommand}" IsEnabled="{Binding IsAutoMode,Converter={StaticResource BoolToBool}}"/>
|
|
|
+ <customControls:PathButton Content="Abort" Canvas.Left="110" Canvas.Top="700" Width="90" Height="25" Command="{Binding AbortCommand}" IsEnabled="{Binding IsAutoMode,Converter={StaticResource BoolToBool}}"/>
|
|
|
+
|
|
|
+ </Canvas>
|
|
|
+ <Canvas Grid.Column="1">
|
|
|
+ <TextBlock Text="Test Result:" FontSize="15" FontWeight="Bold" Canvas.Left="10" Canvas.Top="160"/>
|
|
|
+
|
|
|
+ <Grid Canvas.Left="10" Canvas.Top="200" Height="440" unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="#D8DEE5" Width="400" Background="WhiteSmoke">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="2*"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="2*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="33.846"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="33.846"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Text="Current" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Reference" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Flow" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Pressure" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Flow" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="Pressure" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[0], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[1], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[2], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[3], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[4], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="6" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[5], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="7" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[6], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="8" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[7], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="9" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[8], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="10" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding Path=GasFlows[9], Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="11" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[0]}" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[1]}" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[2]}" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[3]}" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[4]}" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[5]}" Grid.Row="7" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[6]}" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[7]}" Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[8]}" Grid.Row="10" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding CurrentLineSeries[9]}" Grid.Row="11" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[0], Mode=TwoWay}" Grid.Row="2" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[1], Mode=TwoWay}" Grid.Row="3" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[2], Mode=TwoWay}" Grid.Row="4" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[3], Mode=TwoWay}" Grid.Row="5" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[4], Mode=TwoWay}" Grid.Row="6" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[5], Mode=TwoWay}" Grid.Row="7" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[6], Mode=TwoWay}" Grid.Row="8" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[7], Mode=TwoWay}" Grid.Row="9" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[8], Mode=TwoWay}" Grid.Row="10" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceFlow[9], Mode=TwoWay}" Grid.Row="11" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[0]}" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[1]}" Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[2]}" Grid.Row="4" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[3]}" Grid.Row="5" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[4]}" Grid.Row="6" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[5]}" Grid.Row="7" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[6]}" Grid.Row="8" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[7]}" Grid.Row="9" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[8]}" Grid.Row="10" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding ReferenceLineSeries[9]}" Grid.Row="11" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ <customControls:PathButton Content="Save" Canvas.Left="10" Canvas.Top="700" Width="100" Height="26" Command="{Binding SaveCommand}" IsEnabled="{Binding IsAutoMode,Converter={StaticResource BoolToBool}}"/>
|
|
|
+ <customControls:PathButton Content="Compare" Canvas.Left="310" Canvas.Top="700" Width="100" Height="26" Command="{Binding LoadReferenceCommand}" IsEnabled="{Binding IsAutoMode,Converter={StaticResource BoolToBool}}"/>
|
|
|
+
|
|
|
+ </Canvas>
|
|
|
+ <Grid Grid.Column="2">
|
|
|
+
|
|
|
+ <lvc:CartesianChart LegendLocation="Right" Hoverable="True" DataTooltip="{x:Null}" Grid.Row="1" Height="700" >
|
|
|
+ <lvc:CartesianChart.Series>
|
|
|
+ <lvc:LineSeries Title="Current" Width="1" Values="{Binding CurrentLineSeries}" Fill="Transparent" LineSmoothness="0" PointGeometry="{x:Null}" />
|
|
|
+ <lvc:LineSeries Title="Reference" Width="1" Values="{Binding ReferenceLineSeries}" Fill="Transparent" LineSmoothness="0" PointGeometry="{x:Null}"/>
|
|
|
+ </lvc:CartesianChart.Series>
|
|
|
+
|
|
|
+ <lvc:CartesianChart.AxisX>
|
|
|
+ <lvc:Axis Title="SetPoint(%)" Labels="10%,20%,30%,40%,50%,60%,70%,80%,90%,100%" FontSize="15" Foreground="Black">
|
|
|
+ <lvc:Axis.Separator>
|
|
|
+ <lvc:Separator Step="1"/>
|
|
|
+ </lvc:Axis.Separator>
|
|
|
+ </lvc:Axis>
|
|
|
+ </lvc:CartesianChart.AxisX>
|
|
|
+ <lvc:CartesianChart.AxisY>
|
|
|
+ <lvc:Axis Title="{Binding PressureType, StringFormat=Pressure({0})}" FontSize="15" Foreground="Black">
|
|
|
+
|
|
|
+ </lvc:Axis>
|
|
|
+ </lvc:CartesianChart.AxisY>
|
|
|
+ </lvc:CartesianChart>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+</UserControl>
|