コード例 #1
0
ファイル: MainForm.cs プロジェクト: BesuglovS/Schedule
 private void auditoriums_Click(object sender, EventArgs e)
 {
     var audsForm = new Auditoriums(_repo);
     audsForm.Show();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: BesuglovS/Schedule
        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;
        }