public void Process(ScrapChargingEvent _event)
 {
     try
     {
         this._Module._Heat.ScrapChargingHistory.Add(_event);
     }
     catch { }
 }
        private bool ProcessEvent(ScrapChargingEvent _event)
        {
            // Начало загрузки скрапа
            if (_event.ScrapChargingFlag == 1 && !Repositary.ContainsKey("ScrapCharging"))
            {
                try
                {
                    DBWorker.Instance.Insert((int)HeatPassportOperations.ScrapChargingEvent, _event.Time, m_ConverterNumber, HeatNumber, _event.ScrapChargingFlag);
                    Repositary.Add("ScrapCharging", true);
                }
                catch { return false; }
            }

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

            return true;
        }