Beispiel #1
0
 public AddFood(ref Restaurant rest, RestaurantFoodListing rfl)
 {
     this.rfl      = rfl;
     linRestaurant = rest;
     InitializeComponent();
     InitCategories(linRestaurant.RestaurantID);
 }
Beispiel #2
0
        async private void restaurantLogin()
        {
            Restaurant passChecker = new Restaurant();

            passChecker = await loginer.GetRestaurant(lUsernameTextBox.Text);

            if (passChecker != null && passChecker.Password == lPasswordTextBox.Text)
            {
                //MessageBox.Show("Sikeres bejelentkezés!\nID: " + passChecker.RestaurantID, "Infó");
                this.Hide();
                RestaurantFoodListing main = new RestaurantFoodListing(ref passChecker);
                main.Show();
                // TODO: Átvitel fő felületre
            }
            else
            {
                courierLogin();
            }
        }