Ejemplo n.º 1
0
        private void setLayout_Click(object sender, EventArgs e)
        {
            var width = Screen.PrimaryScreen.WorkingArea.Width;
            var height = Screen.PrimaryScreen.WorkingArea.Height;

            Top = 0;
            Left = 0;
            Width = width/2;
            Height = height/2;

            var allAudsForm = new Auditoriums(Repo);
            allAudsForm.Show();
            allAudsForm.Left = 0;
            allAudsForm.Top = height/2;
            allAudsForm.Width = width/2;
            allAudsForm.Height = height/2;

            var discListForm = new DisciplineList(Repo);
            discListForm.Show();
            discListForm.Left = width/2;
            discListForm.Top = 0;
            discListForm.Width = width/2;
            discListForm.Height = height/2;

            var teachersSchedule = new TeacherSchedule(Repo);
            teachersSchedule.Show();
            teachersSchedule.Left = width/2;
            teachersSchedule.Top = height/2;
            teachersSchedule.Width = width/2;
            teachersSchedule.Height = height/2;
        }
Ejemplo n.º 2
0
 private void auditoriums_Click(object sender, EventArgs e)
 {
     var audsForm = new Auditoriums(Repo);
     audsForm.Show();
 }