Idk
This commit is contained in:
130
dealer/windows/EditVehicleWindow.xaml
Normal file
130
dealer/windows/EditVehicleWindow.xaml
Normal file
@@ -0,0 +1,130 @@
|
||||
<Window x:Class="dealer.EditVehicleWindow"
|
||||
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:dealer"
|
||||
mc:Ignorable="d"
|
||||
Title="Upravit vozidlo" Height="600" Width="450"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ResizeMode="NoResize">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Margin="20">
|
||||
<TextBlock Text="Upravit vozidlo"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Margin="0,0,0,20"
|
||||
HorizontalAlignment="Center" />
|
||||
|
||||
<TextBlock Text="SPZ:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="SpzTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
MaxLength="10"
|
||||
CharacterCasing="Upper"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Model:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="ModelTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Barva:" FontSize="14" Margin="0,5" />
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
|
||||
<Border Name="ColorPreviewBorder"
|
||||
Width="40"
|
||||
Height="32"
|
||||
BorderBrush="Gray"
|
||||
BorderThickness="1"
|
||||
Background="White"
|
||||
Margin="0,0,10,0" />
|
||||
<Button Name="SelectColorButton"
|
||||
Content="Vybrat barvu"
|
||||
Width="120"
|
||||
Height="32"
|
||||
Click="SelectColorButton_Click" />
|
||||
<TextBlock Name="ColorNameTextBlock"
|
||||
Text="Nevybrano"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,0,0"
|
||||
FontStyle="Italic"
|
||||
Foreground="Gray" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="Rok vyroby:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="YearTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
MaxLength="4"
|
||||
PreviewTextInput="NumericOnly_PreviewTextInput"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Najete km:" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="MileageTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
PreviewTextInput="NumericOnly_PreviewTextInput"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Cena (Kc):" FontSize="14" Margin="0,5" />
|
||||
<TextBox Name="PriceTextBox"
|
||||
FontSize="14"
|
||||
Padding="5"
|
||||
PreviewTextInput="DecimalOnly_PreviewTextInput"
|
||||
Margin="0,0,0,10" />
|
||||
|
||||
<TextBlock Text="Fotografie:" FontSize="14" Margin="0,15,0,5" />
|
||||
<Border Name="CurrentPhotoBorder" BorderBrush="Gray" BorderThickness="1" Margin="0,0,0,10" HorizontalAlignment="Left" Visibility="Collapsed">
|
||||
<Image Name="CurrentPhotoImage"
|
||||
Width="150"
|
||||
Height="100"
|
||||
Stretch="Uniform" />
|
||||
</Border>
|
||||
<Button Name="SelectPhotoButton"
|
||||
Content="Vybrat novou fotografii"
|
||||
Width="180"
|
||||
Height="30"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,5"
|
||||
Click="SelectPhotoButton_Click" />
|
||||
<TextBlock Name="PhotoPathTextBlock"
|
||||
Text="Zadna zmena fotografie"
|
||||
FontStyle="Italic"
|
||||
Foreground="Gray"
|
||||
Margin="0,0,0,10"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Border Grid.Row="1"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,1,0,0"
|
||||
Background="WhiteSmoke">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,15">
|
||||
<Button Name="SaveButton"
|
||||
Content="Ulozit"
|
||||
Width="100"
|
||||
Height="35"
|
||||
Margin="5"
|
||||
FontSize="14"
|
||||
Click="SaveButton_Click" />
|
||||
<Button Name="CancelButton"
|
||||
Content="Zrusit"
|
||||
Width="100"
|
||||
Height="35"
|
||||
Margin="5"
|
||||
FontSize="14"
|
||||
Click="CancelButton_Click" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user