private void btnStock_Click(object sender, EventArgs e) { ReferenceBtn.Enabled = true; ReferenceFrm.Dispose(); btnStock.Enabled = false; frmStockIn frmStock = new frmStockIn(); ReferenceFrm = frmStock; ReferenceBtn = btnStock; frmStock.TopLevel = false; MainPanel.Controls.Add(frmStock); frmStock.BringToFront(); frmStock.Show(); }
public frmSearchProductStockin(frmStockIn flist) { InitializeComponent(); cn = new SqlConnection(dbcon.MyConnection()); slist = flist; }