Пример #1
0
 public SetNICForm(ServerConfigController ctrl)
 {
     this.ctrl = ctrl;
     InitializeComponent();
     initialize();
 }
Пример #2
0
        private void MsgSvrForm_Load(object sender, EventArgs e)
        {
            try
            {
                Logger.setLogLevel(LOGLEVEL.INFO);
                Logger.BackupOnInit();
                LogWrite("svr_FileCheck() 완료!");

                configCtrl = new ServerConfigController();
                configCtrl.LogWriteHandler += this.OnLogWrite;
                if (!configCtrl.LoadData())
                    throw new Exception("설정정보 로딩 실패.");

                commctl.OnEvent += new CommCtl.CommCtl_MessageDelegate(RecvMessage);

                timerForLicense = new System.Windows.Forms.Timer();
                timerForLicense.Interval = 3600000;
                timerForLicense.Tick += new EventHandler(timerForLicense_Tick);
                timerForLicense.Start();

                callLog_timer = new System.Windows.Forms.Timer();
                callLog_timer.Interval = 300000;
                callLog_timer.Tick += new EventHandler(callLog_timer_Tick);
                callLog_timer.Start();

                dbHandler = new MySqlHandler(configCtrl.DbServerIp, configCtrl.DbPort, configCtrl.DbName, configCtrl.DbUser, configCtrl.DbPasswd);
                dbHandler.LogWriteHandler += this.OnLogWrite;

                startServer();
            }
            catch (Exception ex)
            {
                LogWrite(ex.ToString());
            }
        }
Пример #3
0
 public SetNICForm(ServerConfigController ctrl)
 {
     this.ctrl = ctrl;
     InitializeComponent();
     initialize();
 }