예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            courseForm courseform = new courseForm();
            Form1      mainForm   = new Form1();

            courseform.Hide();
            mainForm.Show();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Model1 db = new Model1();
            //student stu = new student();
            //person person = new person();
            //person.p_id =Convert.ToInt32( textBox1.Text);
            //person.FirstName = textBox2.Text;
            //person.LastName = textBox3.Text;
            //person.n_cod = Convert.ToInt32(textBox4.Text);
            //person.address = textBox5.Text;
            //person.phone = textBox6.Text;
            //stu.p_id = Convert.ToInt32(textBox1.Text);
            //stu.enteringDate = System.DateTime.Now;

            //db.persons.Add(person);
            //db.students.Add(stu);
            //db.SaveChanges();
            courseForm courseform = new courseForm();
            Form1      mainForm   = new Form1();

            mainForm.Hide();
            courseform.Show();
        }