示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!editing)
            {
                string    classroomname = textBox1.Text;
                bool      projector     = checkBox1.Checked;
                Classroom newClassroom  = new Classroom(classroomname, projector, new List <Computer>());
                MainProgram.rooms.Add(newClassroom);
            }
            else
            {
                currentClassroom.Classroomname      = textBox1.Text;
                currentClassroom.Projectoravailable = checkBox1.Checked;
            }

            ClassroomsForm owner = (ClassroomsForm)this.Owner;

            owner.updateGrid();
            this.Close();
        }
示例#2
0
        static void opt7()
        {
            ClassroomsForm frm = new ClassroomsForm();

            Application.Run(frm);
        }
示例#3
0
        static void opt7()
        {
            ClassroomsForm frm = new ClassroomsForm();

            Application.Run(frm);
        }