public frmCabinet() { InitializeComponent(); cabinetPlan = new CabinetPlan(); doctors = new List <Doctor>(); DataGridViewRow row1 = new DataGridViewRow(); dataGridView1.Rows.Add(row1); DataGridViewRow row2 = new DataGridViewRow(); dataGridView1.Rows.Add(row2); DataGridViewRow row3 = new DataGridViewRow(); dataGridView1.Rows.Add(row3); DataGridViewRow row4 = new DataGridViewRow(); dataGridView1.Rows.Add(row4); DataGridViewRow row5 = new DataGridViewRow(); dataGridView1.Rows.Add(row5); dataGridView1.Rows[0].Cells[0].Value = "Понедельник"; dataGridView1.Rows[1].Cells[0].Value = "Вторник"; dataGridView1.Rows[2].Cells[0].Value = "Среда"; dataGridView1.Rows[3].Cells[0].Value = "Четверг"; dataGridView1.Rows[4].Cells[0].Value = "Пятница"; }
public static string add(CabinetPlan cabPlan) { unitOfWork.CabinetPlans.Add(cabPlan); unitOfWork.Save(); return("Загрузка на день определена"); }
public static void remove(CabinetPlan cabPlan) { unitOfWork.CabinetPlans.Remove(cabPlan); unitOfWork.Save(); }