コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void Changer2(object sender, SelectionChangedEventArgs e)
 {
     WpfDrinkzy.StorageServiceRef.Storage storage = (WpfDrinkzy.StorageServiceRef.Storage)StorageList.SelectedItem;
     Details(storage);
 }