示例#1
0
        private void BacklButton_Click(object sender, EventArgs e)
        {
            this.Close();
            Sales_Page New_SP = new Sales_Page(EMP_ID);

            New_SP.Enabled = true;
            New_SP.Show();
        }
示例#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)
                {
                    this.Close();
                    OrderProducts OrderProducts = new OrderProducts(EMP_ID);
                    OrderProducts.Enabled = true;
                    OrderProducts.Show();
                }
                else
                {
                    this.Close();
                    Sales_Page New_SP = new Sales_Page(EMP_ID);
                    New_SP.Enabled = true;
                    New_SP.Show();
                }
            }
        }