public ReportSoldForm(SoldItemsForm frm) { InitializeComponent(); connect = new MySqlConnection(); connect.ConnectionString = dbconnect.DataConnection(); f = frm; }
private void SalesBtn_Click(object sender, EventArgs e) { SoldItemsForm sold = new SoldItemsForm(); sold.dt1.Enabled = false; sold.dt2.Enabled = false; sold.User = usernamelbl.Text; sold.CashierCb.Enabled = false; sold.CashierCb.Text = usernamelbl.Text; sold.ShowDialog(); }
private void SalesHistoryBtn_Click(object sender, EventArgs e) { SoldItemsForm sold = new SoldItemsForm(); sold.ShowDialog(); }
public CancelDetailsForm(SoldItemsForm frm) { InitializeComponent(); f = frm; }