Beispiel #1
0
        private void product_Click(object sender, EventArgs e)
        {
            this.Hide();
            ProductList pl = new ProductList();

            pl.Show();
        }
Beispiel #2
0
        private void btnBackToHomepage_Click(object sender, EventArgs e)
        {
            this.Hide();
            ProductList pl = new ProductList();

            pl.Show();
        }
Beispiel #3
0
 private void Alert_Box()
 {
     string[] text = System.IO.File.ReadAllLines(LowStockSettingFile);
     if (text[1] == "true")
     {
         string message = "Your product(s) are running low!\nPlease check the product list for more information.\n"
                          + "Would you like to check now?";
         const string caption = "Low Stock Alert";
         var          result  = MessageBox.Show(message, caption, MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             ProductList pl = new ProductList();
             pl.Show();
             this.Hide();
         }
         else
         {
             frmHomepage hp = new frmHomepage();
             hp.Show();
             this.Hide();
         }
     }
 }