private void BSeConnecter_Click(object sender, RoutedEventArgs e) { bool valid = true; if (AuthGood(TphoneNumber.Text, TPassword.Text) == false || TphoneNumber.Text.Length == 0 || TPassword.Text.Length == 0) { TError.Text = "Mot de passe ou numéro incorrecte"; TError.Visibility = Visibility.Visible; valid = false; } if (valid == true) { ActiveSession.Instance.Phone = TphoneNumber.Text; WindowAccueil w = new WindowAccueil(); w.Show(); foreach (Window window in Application.Current.Windows) { if (window is MainWindow) { window.Close(); break; } } } }
public PageMyRecipe(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; Client client = new Client(ActiveSession.Instance.Phone); LVrecipe.ItemsSource = client.GetMyRecipe(); }
public PageMyTransaction(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; Client client = new Client(ActiveSession.Instance.Phone); LVtransaction.ItemsSource = client.transactionHistory(); }
public OldOrderr(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; Client client = new Client(ActiveSession.Instance.Phone); LVListOrder.ItemsSource = client.orderHistory(); LVListREcipe.Visibility = Visibility.Hidden; }
public PageMyOder(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; Client client = new Client(ActiveSession.Instance.Phone); LVrecipe.ItemsSource = client.CurrentOrder().QuantityFromName; TPrice.Text = "Prix du Panier : " + Convert.ToString(client.CurrentOrder().Price) + " Cook"; }
public PageRetireCook(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; }
public PageNavigationAdmin(WindowAccueil waccueil) { InitializeComponent(); _waccueil = waccueil; }
public PageNewCook(WindowAccueil waccueil) { _waccueil = waccueil; InitializeComponent(); }
public PageRechercheRecette(WindowAccueil waccueil) { _waccueil = waccueil; InitializeComponent(); }