Esempio n. 1
0
 private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
 {
     if (NowMission != null & NowMission != null)
     {
         try
         {
             if (!bool.Parse(FunClass.PostMeteoData(IP + UrlOfMeteoDataInput, NowStation, NowMission)))
             {
                 MessageBox.Show("数据更新失败");
             }
         }
         catch
         {
             MessageBox.Show("数据更新失败");
         }
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     FunClass.PostMeteoData(IP + UrlOfMeteoDataInput, NowStation, NowMission);
 }