예제 #1
0
        private void orderBt_Click(object sender, EventArgs e)
        {
            OrderProducts OrderProducts = new OrderProducts(this.ID);

            OrderProducts.Enabled = true;
            OrderProducts.Show();
            this.Hide();
        }
예제 #2
0
        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
                {
                }
            }
        }