1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <Window x:Class="mysql_connector2.Windows.CostWindow"
- 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:mysql_connector2.Windows"
- mc:Ignorable="d"
- Title="CostWindow" Height="450" Width="800" Name="root">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <StackPanel
- Grid.Column="1"
- Margin="5">
- <Label Content="Артикул"/>
- <TextBox
- Text="{Binding currentProduct.ArticleNumber}"/>
- <Label Content="Наименование продукта"/>
- <TextBox Text="{Binding currentProduct.Title}"/>
- <ComboBox
- Name="ProductTypeComboBox"
- ItemsSource="{Binding productTypeList}"
- SelectedIndex="{Binding selectedProductIndex}"/>
-
- <Label Content="Количество человек для производства"/>
- <TextBox
- AcceptsReturn="True"
- Text="{Binding currentProduct.ProductionPersonCount}"/>
- <Label Content="Номер производственного цеха"/>
- <TextBox
- AcceptsReturn="True"
- Text="{Binding currentProduct.ProductionWorkshopNumber}"/>
- <Label Content="Минимальная стоимость для агента"/>
- <TextBox
- AcceptsReturn="True"
- Text="{Binding currentProduct.MinCostForAgent}"/>
- <Label Content="Описание продукта"/>
- <TextBox
- AcceptsReturn="True"
- Height="100"
- Text="{Binding currentProduct.Description}"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" Margin="5">
- <Image
- Name="CurrentProductImage"
- Width="200"
- Height="200"
- Source="{Binding currentProduct.ImageBitmap}" />
- <Button Height="20" Content="Сменить картинку" Click="ChangeImage_Click"/>
- <Button Height="20" Content="Удалить" Click="DeleteProductButton_Click"
- Visibility="{Binding DeleteProductVisibly}"/>
- <Button Height="20" Content="Сохранить" Click="SaveButton_Click"/>
- </StackPanel>
- </Grid>
- </Window>
|