Beispiel #1
0
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     _client.FirstName = FirstName.Text;
     _client.LastName  = LastName.Text;
     _db.Add(_client);
     Close();
 }
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     _menuItem.Name        = ItemName.Text;
     _menuItem.Description = Description.Text;
     _db.Add(_menuItem);
     Close();
 }
Beispiel #3
0
 private void DialogChargeMoney_Closing(object sender, DialogClosingEventArgs eventArgs)
 {
     if (Equals(eventArgs.Parameter, true))
     {
         if (clientSelect.SelectedItem is Client c)
         {
             c.Balance += float.Parse(Balance.Text.Replace(',', '.'), CultureInfo.InvariantCulture.NumberFormat);
             _db.Add(c);
             ReloadData();
         }
     }
     Balance.Text = string.Empty;
 }
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     _menu.Items[0] = soupsCombo.SelectedItem as MenuItem;
     _menu.Items[1] = mealsCombo.SelectedItem as MenuItem;
     _menu.Items[2] = desertsCombo.SelectedItem as MenuItem;
     if (string.IsNullOrWhiteSpace(price.Text))
     {
         price.Text = "0";
     }
     _menu.Price        = float.Parse(price.Text);
     _menu.ServingPlace = servingPlaceCombo.SelectedItem as ServingPlace;
     _db.Add(_menu);
     Close();
 }
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     _client.CardNumber = CardNumber.Text;
     _db.Add(_client);
     Close();
 }
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     _client.Balance += float.Parse(Balance.Text);
     _db.Add(_client);
     Close();
 }