Esempio n. 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Form21 form = new Form21();

            this.Hide();
            form.Show();
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Form21 form = new Form21();

            this.Hide();
            form.Show();
        }
Esempio n. 3
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Form21 form = new Form21();

            this.Hide();
            form.Show();
        }
Esempio n. 4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(ConnectionString);

            con.Open();

            SqlCommand exe = new SqlCommand("INSERT INTO RubricLevel(RubricId,Details,MeasurementLevel) values('" + Convert.ToInt32(cmbRubricId.SelectedValue) + "','" + txtDetail.Text + "','" + Convert.ToInt32(cmbSelctMeausrementLvl.SelectedItem) + "')", con);

            exe.ExecuteNonQuery();
            MessageBox.Show("Added!");
            Form21 form = new Form21();

            this.Hide();
            form.Show();
        }
Esempio n. 5
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(ConnectionString);

            con.Open();



            SqlCommand exe = new SqlCommand("UPDATE RubricLevel SET RubricId = '" + cmbRubricId.Text.ToString() + "', MeasurementLevel = '" + cmbSelctMeausrementLvl.Text.ToString() + "', Details = '" + txtDetail.Text.ToString() + "' WHERE Id = '" + ID + "' ", con);

            exe.ExecuteNonQuery();

            MessageBox.Show("Edit Successfully!");

            Form21 frm = new Form21();

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