Финал

This commit is contained in:
H0llowVoid 2024-12-25 14:56:40 +04:00
parent 113cd58d30
commit c8d6fef874
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ namespace ProjectOpticsSalon.Forms
comboBoxClient.ValueMember = "Id";
ColumnProduct.DataSource = productRepository.ReadProducts();
ColumnProduct.DisplayMember = "ProductType";
ColumnProduct.DisplayMember = "Id";
ColumnProduct.ValueMember = "Id";
foreach (var elem in Enum.GetValues(typeof(OrderStatus)))

View File

@ -32,7 +32,7 @@ namespace ProjectOpticsSalon.Forms
maskedTextBoxComponentsPrice.Text = production.ComponentsPrice.ToString();
maskedTextBoxWorkPrice.Text = production.WorkPrice.ToString();
comboBoxProduct.SelectedItem = production.ProductId;
comboBoxProduct.SelectedValue = production.ProductId;
_productionId = value;
}
@ -48,7 +48,7 @@ namespace ProjectOpticsSalon.Forms
InitializeComponent();
_productionRepository = productionRepository ?? throw new ArgumentNullException(nameof(productionRepository));
comboBoxProduct.DataSource = productRepository.ReadProducts();
comboBoxProduct.DisplayMember = "FrameMaterial";
comboBoxProduct.DisplayMember = "Id";
comboBoxProduct.ValueMember = "Id";
}