Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         // CONTROLLO LA QUANTITÁ INSERITA
         if (api.GetLiquidLevel().LiquidLevel < int.Parse(textBox3.Text))
         {
             MessageBox.Show("Il livello del silos é minore di quello inserito");
         }
         else
         {
             leveloperations.Empty(int.Parse(textBox3.Text));
         }
     }
     catch (WebException ex)
     {
         MessageBox.Show("Il server non risponde, contattare P3S" + "  (" + ex.Message + ")");
     }
 }