Esempio n. 1
0
 private void btnDelOrder_Click(object sender, EventArgs e)
 {
     //myModel.AddMealOrder(aMeal);
     if (selectIndex > -1)
     {
         myModel.DeleteOrder(selectIndex);
     }
 }
Esempio n. 2
0
 private void btnDelOrder_Click(object sender, EventArgs e)
 {
     //selectIndex = -1;
     selectIndex = listBox1.SelectedIndex;
     if (selectIndex > -1)
     {
         myModel.DeleteOrder(selectIndex);
     }
 }