示例#1
0
        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 = "Пятница";
        }
示例#2
0
 public static string add(CabinetPlan cabPlan)
 {
     unitOfWork.CabinetPlans.Add(cabPlan);
     unitOfWork.Save();
     return("Загрузка на день определена");
 }
示例#3
0
 public static void remove(CabinetPlan cabPlan)
 {
     unitOfWork.CabinetPlans.Remove(cabPlan);
     unitOfWork.Save();
 }