示例#1
0
 public void ValidationPage()
 {
     this.Hide();
     if (String.Equals(Options, "-> ShopOwnerLogin"))
     {
         this.Close();
         ShopOwnerPage form4 = new ShopOwnerPage(username);
         form4.Show();
     }
     else
     {
         this.Close();
         CustomerEcommerce customerEcommerce = new CustomerEcommerce(username);
         customerEcommerce.Show();
     }
 }
示例#2
0
 private void DeleteCustomerSelected()
 {
     for (int i = 0; i < dataGridViewViewItems.RowCount - 1; i++)
     {
         if (dataGridViewViewItems.Rows[i].Cells[0] != null)
         {
             string        iTemp = dataGridViewViewItems.Rows[i].Cells["ModelNumber"].Value.ToString();
             List <string> ob    = CustomerEcommerce.ReturnList();
             foreach (var item in ob)
             {
                 if (iTemp.Equals(item))
                 {
                     dataGridViewViewItems.Rows.RemoveAt(i);
                     i--;
                 }
             }
         }
     }
 }