53 lines
3.2 KiB
XML
53 lines
3.2 KiB
XML
<Window x:Class="RoleEditor.EditShipDialog"
|
|
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:RoleEditor"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
mc:Ignorable="d"
|
|
Title="Edit ship" Height="250" Width="500" Loaded="Window_Loaded">
|
|
<Grid x:Name="shipGrid">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width=".3*" />
|
|
<ColumnDefinition Width=".6*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="28" />
|
|
</Grid.RowDefinitions>
|
|
<Label Content="Name" HorizontalAlignment="Right" />
|
|
<TextBox x:Name="textBoxName" Grid.Column="1" Margin="2" VerticalContentAlignment="Center" Text="{Binding Name, Mode=OneWay}" />
|
|
<Label Content="Participant / Tug company" HorizontalAlignment="Right" Grid.Row="1" />
|
|
<Grid Grid.Row="1" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="28" />
|
|
</Grid.ColumnDefinitions>
|
|
<ComboBox x:Name="comboBoxParticipants" Margin="2" SelectedItem="{Binding Participant, Mode=OneWay}" />
|
|
<Button x:Name="buttonResetParticipant" Grid.Column="1" Margin="2" Click="buttonResetParticipant_Click">
|
|
<Image Source="./Resources/delete2.png"/>
|
|
</Button>
|
|
</Grid>
|
|
<Label Content="IMO" HorizontalAlignment="Right" Grid.Row="2" />
|
|
<xctk:IntegerUpDown Name="integerUpDownIMO" Grid.Column="1" Grid.Row="2" Value="{Binding IMO, Mode=OneWay}" Margin="2" Minimum="1000000" Maximum="9999999"/>
|
|
<Label Content="Callsign" HorizontalAlignment="Right" Grid.Row="3" />
|
|
<TextBox x:Name="textBoxCallsign" Grid.Column="1" Grid.Row="3" Margin="2" VerticalContentAlignment="Center" Text="{Binding Callsign, Mode=OneWay}" />
|
|
<Label Content="Length" HorizontalAlignment="Right" Grid.Row="4" />
|
|
<xctk:DoubleUpDown Name="doubleUpDownLength" Grid.Row="4" Grid.Column="1" Value="{Binding Length, Mode=OneWay}" Margin="2" Minimum="0" />
|
|
<Label Content="Width" HorizontalAlignment="Right" Grid.Row="5" />
|
|
<xctk:DoubleUpDown Name="doubleUpDownWidth" Grid.Row="5" Grid.Column="1" Value="{Binding Width, Mode=OneWay}" Margin="2" Minimum="0"/>
|
|
<StackPanel Grid.Column="1" Grid.Row="7" Orientation="Horizontal" FlowDirection="RightToLeft">
|
|
<Button x:Name="buttonCancel" Width="80" Content="Cancel" Margin="2" Click="buttonCancel_Click" />
|
|
<Button x:Name="buttonOK" Width="80" Content="OK" Margin="2" Click="buttonOK_Click"/>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</Window>
|