Example #1
0
 private bool DoScheduleTasks(int hour)
 {
     try
     {
         VballManagerWebservice.VballWebServiceSoapClient client = new VballManagerWebservice.VballWebServiceSoapClient();
         client.RunScheduleTasks(DateTime.Now.Hour);
         String reservationData = client.RetrieveData(hour);
         if (!String.IsNullOrEmpty(reservationData))
         {
             File.WriteAllText(System.AppDomain.CurrentDomain.BaseDirectory + DATAFILE + DateTime.Today.ToString("yyyy-MM-dd"), reservationData);
         }
         return(true);
     }catch (Exception ex) {
         this.LogTb.Text = this.LogTb.Text + "\r\n" + DateTime.Now.ToString() + " " + ex.Message;
         return(false);
     }
     // ResetHourSharpTimer();
 }