public void Process(HotMetalLadleEvent _event)
 {
     try
     {
         this._Module._Heat.HotMetalLadleHistory.Add( _event);
     }
     catch { }
 }
        private bool DoHotMetalLadleEvent(int iIdxInPointLi)
        {
            bool bErg = false;

             try {
            HotMetalLadleEvent evHotMetalLadle = new HotMetalLadleEvent();
            j = findPoint("CHGLIDHM",0);
            if (j >= 0) {
               evHotMetalLadle.LadleNumber = pointLi[j].iDataValue;
               j = findPoint("CHGLIDHMKONVNR",0);
               if (j >= 0) {
                  evHotMetalLadle.iCnvNr = pointLi[j].iDataValue;
                  j = findPoint("POURINGTLCNO0",0);
                  if (j >= 0) {
                     evHotMetalLadle.MixerNumberPortion1 = pointLi[j].iDataValue;
                     j = findPoint("POURINGTLCNO1",0);
                     if (j >= 0) {
                        evHotMetalLadle.MixerNumberPortion2 = pointLi[j].iDataValue;
                        j = findPoint("POURINGTLCNO2",0);
                        if (j >= 0) {
                           evHotMetalLadle.MixerNumberPortion3 = pointLi[j].iDataValue;
                           j = findPoint("POURINGHMWGT0",0);
                           if (j >= 0) {
                              evHotMetalLadle.WeightPortion1 = pointLi[j].iDataValue;
                              j = findPoint("POURINGHMWGT1",0);
                              if (j >= 0) {
                                 evHotMetalLadle.WeightPortion2 = pointLi[j].iDataValue;
                                 j = findPoint("POURINGHMWGT2",0);
                                 if (j >= 0) {
                                    evHotMetalLadle.WeightPortion3 = pointLi[j].iDataValue;
                                    j = findPoint("POURINGHMWGTTOTAL",0);
                                    if (j >= 0) {
                                       evHotMetalLadle.HotMetalTotalWeight = pointLi[j].iDataValue;
                                       j = findPoint("HMLDLTEMP",0);
                                       if (j >= 0) {
                                          evHotMetalLadle.HotMetalTemperature = pointLi[j].iDataValue;
                                          sLfdEvtMsg = evHotMetalLadle.ToString();
                                          mainGate.PushEvent(evHotMetalLadle);
                                          AddLogg(evHotMetalLadle.ToString());
                                          bErg = true;
                                          }
                                       else {
                                          AddLogg("При HotMetalLadleEvent не найдена точка HMLDLTEMP");
                                          }
                                       }
                                    else {
                                       AddLogg("При HotMetalLadleEvent не найдена точка POURINGHMWGTTOTAL");
                                       }
                                    }
                                 else {
                                    AddLogg("При HotMetalLadleEvent не найдена точка POURINGHMWGT2");
                                    }
                                 }
                              else {
                                 AddLogg("При HotMetalLadleEvent не найдена точка POURINGHMWGT1");
                                 }
                              }
                           else {
                              AddLogg("При HotMetalLadleEvent не найдена точка POURINGHMWGT0");
                              }
                           }
                        else {
                           AddLogg("При HotMetalLadleEvent не найдена точка POURINGTLCNO2");
                           }
                        }
                     else {
                        AddLogg("При HotMetalLadleEvent не найдена точка POURINGTLCNO1");
                        }
                     }
                  else {
                     AddLogg("При HotMetalLadleEvent не найдена точка POURINGTLCNO0");
                     }
                  }
               else {
                  AddLogg("При HotMetalLadleEvent не найдена точка CHGLIDHMKONVNR");
                  }
               }
            else {
               AddLogg("При HotMetalLadleEvent не найдена точка CHGLIDHM");
               }
            }
             catch (Exception eXc) {
            sLfdEvtErr = eXc.Message;
            AddLogg("При HotMetalLadleEvent Exception: " + eXc.Message);
            }
             return bErg;
        }
        private bool ProcessEvent(HotMetalLadleEvent _event)
        {
            int hotMetalLastSendPortion = Repositary.ContainsKey("HotMetalLastSendPortion") ? (int)Repositary["HotMetalLastSendPortion"] : 0;

            for (int i = hotMetalLastSendPortion; i < 3; i++)
            {
                try
                {
                    if ((int)_event.GetType().GetProperty("MixerNumberPortion" + (i + 1).ToString()).GetValue(_event, null) > 0)
                    {
                        DBWorker.Instance.Insert((int)HeatPassportOperations.HotMetalLadleEvent, _event.Time, m_ConverterNumber, HeatNumber,
                            _event.LadleNumber, _event.HotMetalTemperature, _event.GetType().GetProperty("MixerNumberPortion" + (i + 1).ToString()).GetValue(_event, null),
                            _event.GetType().GetProperty("WeightPortion" + (i + 1).ToString()).GetValue(_event, null));
                    }

                }
                catch { return false; }
                finally
                {
                    if (!Repositary.ContainsKey("HotMetalLastSendPortion"))
                    {
                        Repositary.Add("HotMetalLastSendPortion", i);
                    }
                    else
                    {
                        Repositary["HotMetalLastSendPortion"] = i;
                    }
                }
            }
            Repositary.Remove("HotMetalLastSendPortion");
            return true;
        }