Add clanker code
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:dealer"
|
||||
mc:Ignorable="d"
|
||||
Title="Pridat vozidlo" Height="550" Width="450"
|
||||
Title="Pridat vozidlo" Height="700" Width="500"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ResizeMode="NoResize">
|
||||
<Grid>
|
||||
@@ -30,6 +30,12 @@
|
||||
CharacterCasing="Upper"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Znacka:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="ZnackaTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Model:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="ModelTextBox"
|
||||
FontSize="14"
|
||||
@@ -66,6 +72,19 @@
|
||||
PreviewTextInput="NumericOnly_PreviewTextInput"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Palivo:" FontSize="14" Margin="0,5" />
|
||||
<ComboBox Name="PalivoComboBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
Margin="0,0,0,10">
|
||||
<ComboBoxItem Content="Benzin" />
|
||||
<ComboBoxItem Content="Nafta" />
|
||||
<ComboBoxItem Content="Elektro" />
|
||||
<ComboBoxItem Content="Hybrid" />
|
||||
<ComboBoxItem Content="LPG" />
|
||||
<ComboBoxItem Content="CNG" />
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Text="Najete km:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="MileageTextBox"
|
||||
FontSize="14"
|
||||
@@ -94,6 +113,44 @@
|
||||
Foreground="Gray"
|
||||
Margin="0,0,0,10"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<Separator Margin="0,15,0,15" />
|
||||
|
||||
<TextBlock Text="Vlastnik" FontSize="16" FontWeight="Bold" Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Vybrat vlastnika:" FontSize="14" Margin="0,5" />
|
||||
<Grid Margin="0,0,0,10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox Name="OwnerComboBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
IsEditable="True"
|
||||
IsTextSearchEnabled="False"
|
||||
StaysOpenOnEdit="True"
|
||||
DisplayMemberPath="DisplayText"
|
||||
TextBoxBase.TextChanged="OwnerComboBox_TextChanged"
|
||||
SelectionChanged="OwnerComboBox_SelectionChanged" />
|
||||
<Button Name="AddNewOwnerButton"
|
||||
Grid.Column="1"
|
||||
Content="+"
|
||||
Width="35"
|
||||
Height="35"
|
||||
Margin="5,0,0,0"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
ToolTip="Pridat noveho vlastnika"
|
||||
Click="AddNewOwnerButton_Click" />
|
||||
</Grid>
|
||||
|
||||
<TextBlock Name="SelectedOwnerInfo"
|
||||
Text=""
|
||||
FontStyle="Italic"
|
||||
Foreground="Gray"
|
||||
TextWrapping="Wrap"
|
||||
Margin="0,0,0,10" />
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user