private void orderBt_Click(object sender, EventArgs e) { OrderProducts OrderProducts = new OrderProducts(this.ID); OrderProducts.Enabled = true; OrderProducts.Show(); this.Hide(); }
public void messageBoxForInventoryAlert() { string s = Program.InventoryAlert(); if (!String.Equals(s, "")) { DialogResult result = MessageBox.Show(s + "\n" + "Do you wish to make an order?", "INVENTORY ALERT!", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { OrderProducts OrderProducts = new OrderProducts(EMP_ID); OrderProducts.Enabled = true; OrderProducts.Show(); this.Hide(); } else { } } }