Example #1
0
        public ObserverProcess(object cls)
        {
            main       = (WindClientForm)cls;
            isShutdown = true;

            myIniFile         = new IniFile(@"D:\WindLidarClient.ini");
            m_sourcePath      = myIniFile.Read("SOURCE_PATH");
            m_backupPath      = myIniFile.Read("BACKUP_PATH");
            m_sts_sleep_time  = System.Convert.ToInt32(myIniFile.Read("STS_SLEEP_TIME"));
            m_file_sleep_time = System.Convert.ToInt32(myIniFile.Read("FILE_SLEEP_TIME"));
            m_sta_sleep_time  = System.Convert.ToInt32(myIniFile.Read("STA_SLEEP_TIME"));
            m_alm_sleep_time  = System.Convert.ToInt32(myIniFile.Read("ALM_SLEEP_TIME"));
            m_data1           = myIniFile.Read("DATA1");
            m_data2           = myIniFile.Read("DATA2");

            waitHandle = new ManualResetEvent(false);
            almHandle  = new ManualResetEvent(false);
            staHandle  = new ManualResetEvent(false);

            log = new LogMessageCallback(main.logMessage);


            startProgress = new StartPointCallback(main.StartPointProgress);
            endProgress   = new EndPointCallback(main.EndPointProgress);
            ingProgress   = new ProgressIngCallback(main.IngProgress);

            alarmProcess = new AlarmProcess(this);
            fsLog        = new LogCls();
        }
Example #2
0
 public FtpModuleLib(DataProcess m)
 {
     main = m;
     log  = new LogCls();
 }
Example #3
0
 public AlarmProcess(ObserverProcess m)
 {
     lstAlaram = new List <AlmInfo>();
     log       = new LogCls();
     main      = m;
 }