Помледний коммит из дома, молимся на заватра
This commit is contained in:
parent
4b6a46d586
commit
243eaee2b8
@ -103,6 +103,7 @@
|
||||
buttonCancel.TabIndex = 10;
|
||||
buttonCancel.Text = "Отмена";
|
||||
buttonCancel.UseVisualStyleBackColor = true;
|
||||
buttonCancel.Click += buttonCancel_Click;
|
||||
//
|
||||
// buttonSave
|
||||
//
|
||||
|
@ -55,16 +55,18 @@ namespace ProjectTourAgency.Forms
|
||||
private List<Receipt> CreateListClientTourFromDataGrid()
|
||||
{
|
||||
var list = new List<Receipt>();
|
||||
foreach(DataGridViewRow row in dataGridViewReceipts.Rows)
|
||||
foreach (DataGridViewRow row in dataGridViewReceipts.Rows)
|
||||
{
|
||||
if (row.Cells["ColumnTour"].Value == null || row.Cells["ColumnReceipt"].Value == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
list.Add(Receipt.CreateEntity((int)comboBoxClientId.SelectedValue!,Convert.ToInt32(ColumnTour.ValueMember),0,0));
|
||||
|
||||
list.Add(Receipt.CreateEntity((int)comboBoxClientId.SelectedValue!, Convert.ToInt32(ColumnTour.ValueMember), 0, 0));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
private void buttonCancel_Click(object sender, EventArgs e) => Close();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user