private void button2_Click(object sender, EventArgs e) { this.Hide(); ViewTransactions viewtranspage = new ViewTransactions(); viewtranspage.Show(); }
private void button2_Click(object sender, EventArgs e) { this.Hide(); ViewTransactions Selected_props = new ViewTransactions(); Selected_props.Show(); }
public void delete_trans(string tnum) { var delete = MessageBox.Show("Delete Selected Transaction ?", "Confirm Delete Transaction", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk); if (delete == DialogResult.Yes) { SqlCommand delete_trans = SqlConnectionCommand.getCommand(); delete_trans.CommandText = "USE SRDB DELETE FROM TRANSACTIONS WHERE tnum = @strtno"; delete_trans.Parameters.AddWithValue("@strtno", tnum); delete_trans.ExecuteNonQuery(); try { MessageBox.Show("Successfully Deleted" + " " + tnum, "Deleted transaction", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Hide(); ViewTransactions Trans_page = new ViewTransactions(); Trans_page.Show(); } catch (Exception ex) { } } }
private void button4_Click(object sender, EventArgs e) { this.Hide(); ViewTransactions Trans_page = new ViewTransactions(); Trans_page.Show(); }