private void QuotationSChange_FormClosed(object sender, FormClosedEventArgs e) { this.Dispose(); PendingQuoto frm = new PendingQuoto(); frm.Show(); }
private void button2_Click(object sender, EventArgs e) { this.Dispose(); PendingQuoto frm = new PendingQuoto(); frm.Show(); }
private void button1_Click(object sender, EventArgs e) { try { con = new SqlConnection(cs.DBConn); con.Open(); string cb = "Update Quotation set ValidityStatus='" + comboBox2.Text + "', QStatus='" + comboBox1.Text + "' where QuotationId='" + int.Parse(textBox1.Text) + "'"; cmd = new SqlCommand(cb); cmd.Connection = con; cmd.ExecuteReader(); con.Close(); MessageBox.Show("Successfully updated", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Dispose(); PendingQuoto frm = new PendingQuoto(); frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }