Esempio n. 1
0
 public AddFood(ref Restaurant rest, RestaurantFoodListing rfl)
 {
     this.rfl      = rfl;
     linRestaurant = rest;
     InitializeComponent();
     InitCategories(linRestaurant.RestaurantID);
 }
Esempio n. 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();
            }
        }