public DataGridViewRow GetRow() { var row = new DataGridViewRow(); row.Cells.Add(new DataGridViewTextBoxCell { Value = Id }); row.Cells.Add(new DataGridViewTextBoxCell { Value = Equipment.EquipmentType.name }); row.Cells.Add(new DataGridViewTextBoxCell { Value = Equipment.number }); row.Cells.Add(new DataGridViewTextBoxCell { Value = date.ToString("dd.MM.yy H: mm") }); row.Cells.Add(new DataGridViewTextBoxCell { Value = description }); if (isRepair) { row.Cells.Add(new DataGridViewTextBoxCell { Value = "Ремонт" }); } else { row.Cells.Add(new DataGridViewTextBoxCell { Value = "Проверка" }); } row.Cells.Add(new DataGridViewTextBoxCell { Value = Performer.GetFIO() }); return(row); }