-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
52 lines (52 loc) · 3.83 KB
/
MainWindow.xaml
File metadata and controls
52 lines (52 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Window x:Class="batchOptimization.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:batchOptimization"
mc:Ignorable="d"
Title="Eclipse Batch Optimization"
ResizeMode="CanMinimize"
FontSize="13"
FontFamily="Arial"
SizeToContent="WidthAndHeight"
Closing="CloseWindow">
<Grid Height="380" Width="600">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="Plans to Optimize" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/>
<Border Grid.Column="0" BorderBrush="Gray" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,25,10,0" Height="200" Width="420">
<DataGrid x:Name="dataGridPlns" AutoGenerateColumns="False" CanUserAddRows="False" CanUserSortColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Header="Patient Id" Binding="{Binding Pat}" Width="*"/>
<DataGridTextColumn Header="Course Id" Binding="{Binding Crs}" Width="*"/>
<DataGridTextColumn Header="Plan Id" Binding="{Binding Pln}" Width="*"/>
<DataGridTextColumn Header="Iterations" Binding="{Binding Iter}" Width="68"/>
<DataGridTextColumn Header="Status" Binding="{Binding Stat}" Width="48" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Button Grid.Column="1" Name="btnAddPln" Content="Add Plan" ToolTip="Add a plan row." HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,25,0,0" Width="100" Height="30" Click="btnAddPln_Click"/>
<Button Grid.Column="1" Name="btnRmvPln" Content="Remove Plan" ToolTip="Remove the selected plan row." HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,60,0,0" Width="100" Height="30" Click="btnRmvPln_Click"/>
<Button Grid.Column="1" Name="btnChckPln" Content="Check Plans" ToolTip="Simple plan check for optimization." HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,95,0,0" Width="100" Height="30" Click="btnChckPln_Click"/>
<Label Grid.Column="1" Content="Dose Calc Only" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="32,175,0,0"/>
<CheckBox Grid.Column="1" Name="chkBxDoseCalcOnly" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="130,180,0,0"/>
<Button Grid.Column="1" Name="btnRunOpt" Background="GreenYellow" Content="Run Optimizations" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,200,0,0" Width="120" Height="35" Click="btnRunOpt_Click"/>
<Label Grid.Row="1" Content="Optimization Log" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/>
<Border Grid.Row="1" Grid.ColumnSpan="2" BorderBrush="Gray" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,25,0,0" Height="90" Width="580">
<ListView Name="lstvHst" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.CanContentScroll="False"/>
</Border>
<DockPanel Grid.Row ="2" Grid.ColumnSpan="2" VerticalAlignment="Bottom">
<StatusBar DockPanel.Dock="Bottom" Height="Auto" Width="Auto" FontSize="12" FontFamily="Lucida Sans">
<TextBlock Name="txtbStat" Text="Ready."/>
</StatusBar>
</DockPanel>
</Grid>
</Window>