Example #1
0
        private void setLayout2_Click(object sender, EventArgs e)
        {
            var width = Screen.PrimaryScreen.WorkingArea.Width;
            var height = Screen.PrimaryScreen.WorkingArea.Height;

            var disciplineForm = new DisciplineList(Repo);
            disciplineForm.Show();
            disciplineForm.Top = 0;
            disciplineForm.Left = width/2;
            disciplineForm.Width = width/2;
            disciplineForm.Height = (int) Math.Round(height*0.42);
        }
Example #2
0
 private void ДисциплиныToolStripMenuItemClick(object sender, EventArgs e)
 {
     var disciplineForm = new DisciplineList(Repo);
     disciplineForm.Show();
 }
Example #3
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;
        }