Beispiel #1
0
 static void StartProgress(dynamic param, Interface.ISecuritiesAPI <EventHandler.SendSecuritiesAPI> api)
 {
     if (api is OpenAPI.ConnectAPI)
     {
         Application.Run(new SecuritiesAPI(param.Item1, param.Item2, api));
     }
 }
Beispiel #2
0
        static void StartProgress(dynamic param, Interface.ISecuritiesAPI <EventHandler.SendSecuritiesAPI> api)
        {
            if (api is OpenAPI.ConnectAPI)
            {
                Application.Run(new SecuritiesAPI(param, api));
            }

            var now = DateTime.Now;

            if (Base.CheckIfMarketDelay(now) && Base.CheckIfMarketDelay(now, 1))
            {
                now = now.AddHours(-1);
            }

            if (Base.IsDebug is false && (now.Hour < 0xF || now.Hour > 0x10))
            {
                Process.Start("shutdown.exe", "-r");
                Base.SendMessage(Security.Initialize(param).Item2);
            }
        }