protected override void OnCreate() { var config = TimerConfig.Default(); config.Left = 868; config.Top = 64; config.Font_Size = 22; SetTimerConfig(config); //if (ConfigFile.ReadConfigAndCreate("AppData", "AutoRun", "1").Trim() == "1") //{ // if (SetAutoRunCtrlRegInfo(true)) // Log.Info("设置开机自启动成功"); //} #region 此功能在配置参数时已实现 //if (ConfigFile.ReadConfigAndCreate("AppData", "AutoRun", "1").Trim() == "1") //{ // if (SetAutoRunCtrlRegInfo(true)) // Log.Info("设置开机自启动成功"); //} //else //{ // if (SetAutoRunCtrlRegInfo(false)) // Log.Info("取消开机自启动成功"); //} #endregion //初装机注册文件 if (GlobalAppData.GetInstance().AppFirst&& RegsvrStarTrans()) { Log.Info("注册成功"); GlobalAppData.GetInstance().AppFirst = false; } //GPRS.AddedToManager(); CardReader.AddedToManager(); Esam.AddedToManager(); ReceiptPrinter.AddedToManager(); //R80.AddedToManager(); GasCardReader.AddedToManager(); }