public cCheckPlan() { if (!File.Exists(Program.getPrjPath() + "tasks\\plan\\plan.xml")) { cPlans cs = new cPlans(); cs.NewIndexFile(); cs = null; } try { m_runTasks = new List <cPlan>(); IniCheckPlan(); //初始化任务文件监听类,,根据文件变化不断更新任务监控信息 m_FileMonitor = new cFileMonitor(Program.getPrjPath() + "tasks\\plan\\plan.xml"); m_FileMonitor.ReloadPlanFile += this.On_Reload; //系统默认为启动文件监听 StartListenPlanFile(); } catch (System.Exception ex) { if (e_ListenErrorEvent != null) { e_ListenErrorEvent(this, new cListenErrorEventArgs(ex.Message)); } } }
public cCheckPlan() { if (!File.Exists(Program.getPrjPath() + "tasks\\plan\\plan.xml")) { cPlans cs = new cPlans(); cs.NewIndexFile(); cs = null; } try { m_runTasks = new List<cPlan>(); IniCheckPlan(); //��ʼ�������ļ�������,�������ļ��仯���ϸ�����������Ϣ m_FileMonitor = new cFileMonitor(Program.getPrjPath() + "tasks\\plan\\plan.xml"); m_FileMonitor.ReloadPlanFile += this.On_Reload; //ϵͳĬ��Ϊ����ļ����� StartListenPlanFile(); } catch (System.Exception ex) { if (e_ListenErrorEvent != null) { e_ListenErrorEvent(this, new cListenErrorEventArgs(ex.Message)); } } }