Esempio n. 1
0
 public override void GetList(ManageList <Account> list)
 {
     list.Clear();
     foreach (DataRow row in Read().Rows)
     {
         list.Add(new Account(row));
     }
 }
Esempio n. 2
0
 public override void GetList(ManageList <Table> list)
 {
     list.Clear();
     foreach (DataRow row in Read().Rows)
     {
         list.Add(new Table(row));
     }
 }
Esempio n. 3
0
 public void GetList(ManageList <Bill> list, string TableName)
 {
     list.Clear();
     foreach (DataRow row in Read(TableName).Rows)
     {
         list.Add(new Bill(row));
     }
 }
Esempio n. 4
0
 private void btnAddType_Click(object sender, EventArgs e)
 {
     if (cbType.Text != String.Empty)
     {
         listChooseType.Add(cbType.Text);
         txtType.Text += (dem++).ToString() + ". " + cbType.Text + "\r\n";
         cbType.Items.Remove(cbType.Text);
     }
 }
Esempio n. 5
0
 //Tao ra List cac do uong co Type mong muon
 public void getListDrinkWithManyType(ManageList <Drink> list, ManageList <Drink> chooseDrink, ManageList <string> Type)
 {
     chooseDrink.Clear();
     for (int i = 0; i < list.Count; i++)
     {
         if (Type.Contains(list[i].Type))
         {
             chooseDrink.Add(list[i]);
         }
     }
 }