コード例 #1
0
ファイル: Program.cs プロジェクト: APSIMInitiative/POAMA
 /// <summary>Main entry point.</summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     POAMA.Service.Forecast forecast = new POAMA.Service.Forecast();
     if (args.Length == 1 && args[0] == "/Update")
         forecast.Update();
     else
     {
         Stream data = forecast.Get(91009, DateTime.Today, true);
         StreamReader reader = new StreamReader(data);
         Console.Write(reader.ReadToEnd());
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: zur003/POAMA
 /// <summary>Main entry point.</summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     POAMA.Service.Forecast forecast = new POAMA.Service.Forecast();
     if (args.Length == 1 && args[0] == "/Update")
     {
         forecast.Update();
     }
     else
     {
         Stream       data   = forecast.Get(91009, DateTime.Today, true);
         StreamReader reader = new StreamReader(data);
         Console.Write(reader.ReadToEnd());
     }
 }
コード例 #3
0
        /// <summary>Main entry point.</summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            DataTable data;

            POAMA.Service.Forecast forecast = new POAMA.Service.Forecast();
            if (args.Length == 1 && args[0] == "/Update")
            {
                forecast.Update();
            }
            else
            {
                ServiceReference1.ForecastClient forecastClient = new ServiceReference1.ForecastClient();
                data = forecastClient.GetDataTable(41023, new DateTime(2016, 08, 03), true);
                Console.WriteLine(data.TableName.ToString());
            }
        }