Пример #1
0
 private void moveToProduct_Click(object sender, EventArgs e)
 {
     try
     {
         products product = new products();
         product.Show();
         this.Close();
     }
     catch (Exception f)
     {
         MessageBox.Show(f.Message);
     }
 }
Пример #2
0
 private void userType(DataTable data)
 {
     if (data.Rows[0][1].ToString() == "1")
     {
         Transactions transaction = new Transactions();
         transaction.Show();
         this.Hide();
     }
     else if (data.Rows[0][1].ToString() == "2")
     {
         //admin
         products product = new products();
         product.Show();
         this.Hide();
     }
 }