Ejemplo n.º 1
0
 private void auditoriums_Click(object sender, EventArgs e)
 {
     var audsForm = new Auditoriums(_repo);
     audsForm.Show();
 }
Ejemplo n.º 2
0
        private void setLayout_Click(object sender, EventArgs e)
        {
            var width = Screen.PrimaryScreen.WorkingArea.Width;
            var height = Screen.PrimaryScreen.WorkingArea.Height;

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

            var audsForm = new Auditoriums(_repo);
            audsForm.Show();
            audsForm.Top = height / 2;
            audsForm.Left = 0;
            audsForm.Width = width / 2;
            audsForm.Height = height / 2;
        }