ПИбд-23. Гуторов И.А. Лабораторная работа 4 #4
@ -15,11 +15,11 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
_contractRepository = contractRepository ?? throw new ArgumentNullException(nameof(contractRepository));
|
||||
|
||||
comboBoxContractCustomerId.DataSource = customerRepository.ReadCustomers();
|
||||
comboBoxContractCustomerId.DisplayMember = "Name";
|
||||
comboBoxContractCustomerId.DisplayMember = "FullName";
|
||||
comboBoxContractCustomerId.ValueMember = "Id";
|
||||
|
||||
comboBoxContractExecutorId.DataSource = executorRepository.ReadExecutors();
|
||||
comboBoxContractExecutorId.DisplayMember = "Name";
|
||||
comboBoxContractExecutorId.DisplayMember = "FullName";
|
||||
comboBoxContractExecutorId.ValueMember = "Id";
|
||||
|
||||
ColumnServiceDescription.DataSource = serviceRepository.ReadServices();
|
||||
|
@ -14,7 +14,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
_container = container ?? throw new ArgumentNullException(nameof(container));
|
||||
|
||||
comboBoxCutomerId.DataSource = customerRepository.ReadCustomers();
|
||||
comboBoxCutomerId.DisplayMember = "Name";
|
||||
comboBoxCutomerId.DisplayMember = "FullName";
|
||||
comboBoxCutomerId.ValueMember = "Id";
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,11 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadList() => dataGridViewData.DataSource = _contractRepository.ReadContracts();
|
||||
private void LoadList()
|
||||
{
|
||||
dataGridViewData.DataSource = _contractRepository.ReadContracts();
|
||||
dataGridViewData.Columns["Id"].Visible = false;
|
||||
}
|
||||
|
||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||
{
|
||||
|
@ -15,11 +15,11 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
throw new ArgumentNullException(nameof(customerExecutorReviewRepository));
|
||||
|
||||
comboBoxCustomerExecutorReviewCustomerId.DataSource = customerRepository.ReadCustomers();
|
||||
comboBoxCustomerExecutorReviewCustomerId.DisplayMember = "Name";
|
||||
comboBoxCustomerExecutorReviewCustomerId.DisplayMember = "FullName";
|
||||
comboBoxCustomerExecutorReviewCustomerId.ValueMember = "Id";
|
||||
|
||||
comboBoxCustomerExecutorReviewExecutorId.DataSource = executorRepository.ReadExecutors();
|
||||
comboBoxCustomerExecutorReviewExecutorId.DisplayMember = "Name";
|
||||
comboBoxCustomerExecutorReviewExecutorId.DisplayMember = "FullName";
|
||||
comboBoxCustomerExecutorReviewExecutorId.ValueMember = "Id";
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,10 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadList() => dataGridViewData.DataSource = _customerExecutorReviewRepository.ReadCustomerExecutorReviews();
|
||||
private void LoadList()
|
||||
{
|
||||
dataGridViewData.DataSource = _customerExecutorReviewRepository.ReadCustomerExecutorReviews();
|
||||
dataGridViewData.Columns["Id"].Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,12 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadList() => dataGridViewData.DataSource = _customerRepository.ReadCustomers();
|
||||
private void LoadList()
|
||||
{
|
||||
dataGridViewData.DataSource = _customerRepository.ReadCustomers();
|
||||
dataGridViewData.Columns["Id"].Visible = false;
|
||||
dataGridViewData.Columns["FullName"].Visible = false;
|
||||
}
|
||||
|
||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||
{
|
||||
|
@ -78,7 +78,12 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadList() => dataGridViewData.DataSource = _executorRepository.ReadExecutors();
|
||||
private void LoadList()
|
||||
{
|
||||
dataGridViewData.DataSource = _executorRepository.ReadExecutors();
|
||||
dataGridViewData.Columns["Id"].Visible = false;
|
||||
dataGridViewData.Columns["FullName"].Visible = false;
|
||||
}
|
||||
|
||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||
{
|
||||
|
@ -78,7 +78,11 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadList() => dataGridViewData.DataSource = _serviceRepository.ReadServices();
|
||||
private void LoadList()
|
||||
{
|
||||
dataGridViewData.DataSource = _serviceRepository.ReadServices();
|
||||
dataGridViewData.Columns["Id"].Visible = false;
|
||||
}
|
||||
|
||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user