public void Details(WpfDrinkzy.StorageServiceRef.Storage storage) { if (storage != null) { txtAmount.Text = Convert.ToString(storage.Amount); txtMinAMount.Text = Convert.ToString(storage.MinAmount); txtMaxAmount.Text = Convert.ToString(storage.MaxAmount); } }
public void UpdateStorage() { WpfDrinkzy.StorageServiceRef.Storage storage = (WpfDrinkzy.StorageServiceRef.Storage)StorageList.SelectedItem; storage.Amount = int.Parse(txtAmount.Text); storage.MinAmount = int.Parse(txtMinAMount.Text); storage.MaxAmount = int.Parse(txtMaxAmount.Text); sClient.UpdateStorages(storage); }
public void Changer2(object sender, SelectionChangedEventArgs e) { WpfDrinkzy.StorageServiceRef.Storage storage = (WpfDrinkzy.StorageServiceRef.Storage)StorageList.SelectedItem; Details(storage); }