Ejemplo n.º 1
0
 private void ДисциплиныToolStripMenuItemClick(object sender, EventArgs e)
 {
     var disciplineForm = new DisciplineList(_repo);
     disciplineForm.Show();
 }
Ejemplo n.º 2
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);
        }