private void PointConfigForm_Load(object sender, EventArgs e) { _hallHelper = new HallHelper(); _hallHelper.LocalDataPath = this.LocalPath; cbType.SelectedIndex = 0; FillExistedPointInfo(); }
private void Form1_Load(object sender, EventArgs e) { ConfigHelper.ResolveConfig(Application.StartupPath + "\\config.xml"); ErrorLogHelper.LocalPath = Application.StartupPath; InfoLogHelper.RegisterLog(this); logClearTimer.Elapsed += logClearTimer_Elapsed; ServerHelper.GetInstace(); InitComponents(); _hallHelper = new HallHelper(); _hallHelper.LocalDataPath = Application.StartupPath; try { FillExistHallInfo(); } catch (Exception ex) { Console.WriteLine("get remote hallinfo err:" + ex.Message); } }