Beispiel #1
0
        private void nextbutton_Click(object sender, EventArgs e)
        {
            moveadd add = new moveadd();

            this.Hide();
            add.Show();
        }
Beispiel #2
0
        private void erasebutton_Click(object sender, EventArgs e)
        {
            string classroom = (classroomcomboBox.Text).Replace(' ', '_');

            cmderase.CommandText = "UPDATE [" + classroom + "] SET [" + timecomboBox.Text + "] = 'Available' Where Day = '" + datecomboBox.Text + "';";
            cmderase.CommandType = CommandType.Text;
            cmderase.Connection  = cnnoledb;
            cmderase.ExecuteNonQuery();

            moveadd add = new moveadd();

            this.Hide();
            add.Show();
        }