//Stock Button Actions public void CreateStockObjects() { Stock_08 objStock = new Stock_08(); objStock.adminInstance = this; this.Hide(); objStock.Show(); }
private void btnBookStock_Click(object sender, EventArgs e) { adminInstance.errObj.txtBtnClicks.Text += "\n" + MethodBase.GetCurrentMethod().Name; Stock_08 objStock = new Stock_08(); if (txtAccno.Text != "") { objStock.accno = txtAccno.Text; } objStock.Show(); }