Esempio n. 1
0
 private static void Update(object e, EventArgs arg)
 {
     if (Source.thread_sleep)
     {
         System.Threading.Tasks.Task.Factory.StartNew(() => Weeb.Get_Currency_Update());
     }
 }
Esempio n. 2
0
        static void Main()
        {
            var init = new Initialization();

            init.Init();
            Task.Factory.StartNew(() => Weeb.Get_Currency_Update());
            System.Windows.Forms.Application.Run();
        }
Esempio n. 3
0
 static private void Timing(object ebj, ElapsedEventArgs e)
 {
     if (DateTime.Now.Hour == Hour || Source.last_error)
     {
         if (Source.thread_sleep)
         {
             Weeb.Get_Currency_Update();
         }
     }
 }