}       //Done

        private void ResturantComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (Outletcbx.SelectedItem != null)
            {
                ValOfResturant = Classes.RetrieveRestaurantCode(Outletcbx.SelectedItem.ToString());
                Kitchencbx.Items.Clear();
                DataTable Kitchens = Classes.RetrieveKitchens(Outletcbx.SelectedItem.ToString());
                for (int i = 0; i < Kitchens.Rows.Count; i++)
                {
                    Kitchencbx.Items.Add(Kitchens.Rows[i][0]);
                }
            }
        }       //Done
Beispiel #2
0
        private void Restaurant_cbx_Selected(object sender, SelectionChangedEventArgs e)
        {
            DataTable TheKitchens = new DataTable();

            if (Restaurant_cbx.SelectedItem != null)
            {
                TheKitchens = Classes.RetrieveKitchens(Restaurant_cbx.SelectedItem.ToString());
                for (int i = 0; i < TheKitchens.Rows.Count; i++)
                {
                    Kitchen_cbx.Items.Add(TheKitchens.Rows[i][0].ToString());
                }
            }
        }