private void btnReorder_Click(object sender, EventArgs e) { var reorder = new Reorder(); setproductid = Convert.ToInt32(txtProductID.Text); reorder.Show(); Hide(); }
private void StockChecker(int stock, int productid) { if (stock <= 100) { setproductid = productid; setstockonhand = stock; var msg = MessageBox.Show("Stocks are available for Restock! Stock-outs are no longer permitted.", "ALERT!", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (msg == DialogResult.Yes) { var reorder = new Reorder(); reorder.Show(); Hide(); } else { txtStockout.Enabled = false; } } }