Ejemplo n.º 1
0
        private void View_Click(object sender, EventArgs e)
        {
            InstructorDataAccess db = new InstructorDataAccess();

            instructor = db.GetInstructor(Int32.Parse(instIdTB.Text));
            updateBinding();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            InstructorDataAccess db = new InstructorDataAccess();

            db.InsertInstructor(Int32.Parse(instIdTB.Text), firstNameTextBox.Text, lastNameTextBox.Text, Int32.Parse(deptNameTextBox.Text));
            instIdTB.Text         = "0";
            firstNameTextBox.Text = "";
            lastNameTextBox.Text  = "";
            deptNameTextBox.Text  = "0";
        }