AddMaterial.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <Window x:Class="mysql_connector2.Windows.AddMaterial"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:mysql_connector2.Windows"
  7. mc:Ignorable="d"
  8. Title="AddMaterial" Height="450" Width="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto" />
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="Auto" />
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="Auto" />
  19. <ColumnDefinition Width="*" />
  20. </Grid.ColumnDefinitions>
  21. <TextBlock Grid.Row="0" Grid.Column="0" Text="Поиск материала:" Margin="10" />
  22. <TextBox x:Name="SearchTextBox" Grid.Row="0" Grid.Column="1" Margin="10" TextChanged="SearchTextBox_TextChanged" />
  23. <TextBlock Grid.Row="1" Grid.Column="0" Text="Материал:" Margin="10" />
  24. <ComboBox x:Name="MaterialComboBox" Grid.Row="1" Grid.Column="1" Margin="10" DisplayMemberPath="MaterialTitle"
  25. ItemsSource="{Binding allMaterials}" SelectedValuePath="ID" />
  26. <TextBlock Grid.Row="2" Grid.Column="0" Text="Количество:" Margin="10" />
  27. <TextBox x:Name="MaterialCountTextBox" Grid.Row="2" Grid.Column="1" Margin="10" />
  28. <Button x:Name="AddMaterialButton" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Content="Добавить" Margin="10" Click="AddMaterialButton_Click" />
  29. </Grid>
  30. </Window>