Esempio n. 1
0
 private void Waiter_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox1.SelectedIndex >= 0)
     {
         foreach (DatabaseData.Models.Waiter ww in mw)
         {
             if ((ww.FirstName + " " + ww.LastName) == (string)comboBox3.SelectedItem)
             {
                 selectedWaiter = ww;
             }
         }
     }
 }
Esempio n. 2
0
 private void ComboBox3_MouseClick(object sender, MouseEventArgs e)
 {
     if (comboBox1.SelectedIndex >= 0)
     {
         foreach (DatabaseData.Models.Waiter ww in mw)
         {
             if ((ww.FirstName + " " + ww.LastName) == (string)comboBox3.SelectedItem)
             {
                 selectedWaiter = ww;
                 Console.WriteLine(comboBox3.SelectedItem);
             }
         }
     }
 }