public void Process(HeatingScrapEvent _event)
 {
     try
     {
         this._Module._Heat.HeatingScrapHistory.Add( _event);
     }
     catch { }
 }
        private bool DoHeatingScrapEvent(int iIdxInPointLi)
        {
            bool bErg = false;

             try {
            HeatingScrapEvent evHeatingScrap = new HeatingScrapEvent();
            evHeatingScrap.iCnvNr = pointLi[iIdxInPointLi].iCnvNr;
            j = findPoint("HEATING_SCRAP",pointLi[iIdxInPointLi].iCnvNr);
            if (j >= 0) {
               evHeatingScrap.HeatingScrapFlag = pointLi[j].iDataValue;
               sLfdEvtMsg = evHeatingScrap.ToString();
               mainGate.PushEvent(evHeatingScrap);
               AddLogg(evHeatingScrap.ToString());
               bErg = true;
               }
            else {
               AddLogg("При HeatingScrapEvent не найдена точка K" + pointLi[iIdxInPointLi].iCnvNr + " HEATING_SCRAP");
               }
            }
             catch (Exception eXc) {
            sLfdEvtErr = eXc.Message;
            AddLogg("При HeatingScrapEvent K" + pointLi[iIdxInPointLi].iCnvNr + " Exception: " + eXc.Message);
            }
             return bErg;
        }
        private bool ProcessEvent(HeatingScrapEvent _event)
        {
            // Начало сушки скрапа
            if (_event.HeatingScrapFlag == 1 && !Repositary.ContainsKey("HeatingScrap"))
            {
                try
                {
                    DBWorker.Instance.Insert((int)HeatPassportOperations.HeatingScrapEvent, _event.Time, m_ConverterNumber, HeatNumber, _event.HeatingScrapFlag);
                    Repositary.Add("HeatingScrap", true);
                    return true;
                }
                catch { return false; }
            }

            // Конец сушки скрапа
            if (_event.HeatingScrapFlag == 0 && Repositary.ContainsKey("HeatingScrap"))
            {
                try
                {
                    DBWorker.Instance.Insert((int)HeatPassportOperations.HeatingScrapEvent, _event.Time, m_ConverterNumber, HeatNumber, _event.HeatingScrapFlag);
                    Repositary.Remove("HeatingScrap");
                    return true;
                }
                catch { return false; }
            }
            return true;
        }