Финал
This commit is contained in:
parent
113cd58d30
commit
c8d6fef874
@ -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)))
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user