Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKB/HeuristicLab.OKB.Cockpit.Admin/ProblemEditor.xaml @ 4401

Last change on this file since 4401 was 4311, checked in by swagner, 14 years ago

Integrated OKB clients for HL 3.3 (#1166)

File size: 2.8 KB
RevLine 
[4311]1<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3             xmlns:src="clr-namespace:HeuristicLab.OKB.Cockpit.Admin"
4             x:Class="HeuristicLab.OKB.Cockpit.Admin.ProblemEditor">
5  <UserControl.Resources>
6    <Style TargetType="{x:Type Button}">
7      <Setter Property="Padding" Value="5 0 5 0"/>
8      <Setter Property="Margin" Value="1 0 1 0"/>
9    </Style>
10  </UserControl.Resources>
11  <DockPanel>
12
13    <GroupBox DockPanel.Dock="Top" Header="Master Data">
14      <Grid>
15        <Grid.RowDefinitions>
16          <RowDefinition Height="Auto"/>
17          <RowDefinition Height="Auto"/>
18        </Grid.RowDefinitions>
19        <Grid.ColumnDefinitions>
20          <ColumnDefinition Width="Auto"/>
21          <ColumnDefinition Width="Auto"/>
22          <ColumnDefinition Width="*"/>
23          <ColumnDefinition Width="Auto"/>
24          <ColumnDefinition Width="Auto"/>
25          <ColumnDefinition Width="Auto"/>
26        </Grid.ColumnDefinitions>
27        <TextBlock Grid.Column="0">Id</TextBlock>
28        <TextBlock Grid.Column="1">Name</TextBlock>
29        <TextBlock Grid.Column="2">Description</TextBlock>
30
31        <TextBox IsEnabled="False" Grid.Column="0" Grid.Row="1" Name="IdBox"/>
32        <TextBox Grid.Column="1" Grid.Row="1" Name="NameBox"/>
33        <TextBox Grid.Column="2" Grid.Row="1" Name="DescriptionBox" TextWrapping="Wrap"/>
34
35        <ComboBox Name="SolutionRepresentationBox" Grid.Column="3" SelectedValuePath="Id"  DisplayMemberPath="Name"/>
36        <Button Name="ParametersButton" Grid.Column="3" Grid.Row="1" Click="OnViewParameters">Parameters</Button>
37
38        <Button Grid.Column="4" Grid.Row="0" Click="OnLoad">Reload</Button>
39        <Button Grid.Column="4" Grid.Row="1" Click="OnSave">Save</Button>
40
41        <Button Grid.Column="5" Grid.Row="0" Click="OnDownload">Download...</Button>
42        <Button Grid.Column="5" Grid.Row="1" Click="OnUpload">Upload...</Button>
43      </Grid>
44    </GroupBox>
45    <GroupBox Header="Problem Characteristics" DockPanel.Dock="Right">
46      <ListBox Name="ProblemCharacteristicsList" HorizontalContentAlignment="Stretch">
47        <ListBox.ItemTemplate>
48          <DataTemplate>
49            <ListBoxItem>
50              <UniformGrid Columns="2">
51                <ToggleButton Content="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}" ToolTip="{Binding Description}"/>
52                <TextBox MinWidth="40" Text="{Binding Value, Mode=TwoWay}" ToolTip="{Binding DataType}"/>
53              </UniformGrid>
54            </ListBoxItem>
55          </DataTemplate>
56        </ListBox.ItemTemplate>
57      </ListBox>
58    </GroupBox>
59    <src:OperatorGraphEditorHost x:Name="OperatorGraphEditor"/>
60  </DockPanel>
61</UserControl>
Note: See TracBrowser for help on using the repository browser.