public void Process(IgnitionEvent _event)
 {
     try
     {
         this._Module._Heat.IgnitionHistory.Add( _event);
     }
     catch { }
 }
 private bool InsertOrUpdateTrends(IgnitionEvent evt)
 {
     var sql = CheckInsert("TREND_MODES", evt.iCnvNr, evt.Time)
                   ? "UPDATE TREND_MODES " +
                     "SET IGNITION = :IGNITION " +
                     "WHERE CNV_NO = :CNV_NO AND INSERTTIME = :INSERTTIME "
                   : "INSERT INTO TREND_MODES(IGNITION, CNV_NO, INSERTTIME) " +
                     "VALUES (:IGNITION, :CNV_NO, :INSERTTIME) ";
     var parametres = new List<OracleParameter> { SetParams("IGNITION", evt.FusionIgnition) };
     parametres.AddRange(MandatoryParams(evt.iCnvNr, evt.Time));
     return ExecuteNonQuery(sql, parametres);
 }
        private bool DoIgnitionEvent(int iIdxInPointLi)
        {
            bool bErg = false;

             try {
            IgnitionEvent evIgnition = new IgnitionEvent();
            evIgnition.iCnvNr = pointLi[iIdxInPointLi].iCnvNr;
            j = findPoint("O2VOL_IGNITION",pointLi[iIdxInPointLi].iCnvNr);
            if (j >= 0) {
               evIgnition.O2IgnitionVol = pointLi[j].iDataValue;
               sLfdEvtMsg = evIgnition.ToString();
               mainGate.PushEvent(evIgnition);
               AddLogg(evIgnition.ToString());
               bErg = true;
               }
            else {
               AddLogg("При IgnitionEvent не найдена точка K" + pointLi[iIdxInPointLi].iCnvNr + " O2VOL_IGNITION");
               }
            }
             catch (Exception eXc) {
            sLfdEvtErr = eXc.Message;
            AddLogg("При IgnitionEvent K" + pointLi[iIdxInPointLi].iCnvNr + " Exception: " + eXc.Message);
            }
             return bErg;
        }
        private bool ProcessEvent(IgnitionEvent _event)
        {
            try
            {
                DBWorker.Instance.Insert((int)HeatPassportOperations.IgnitionEvent, _event.Time, m_ConverterNumber, HeatNumber, _event.O2IgnitionVol);
            }
            catch { return false; }

            return true;
        }