Beispiel #1
0
        protected int getPBRNumber(int hour = -1)
        {
            int iRes = -1
            , iHour  = hour;

            if (iHour < 0)
            {
                if (m_ignore_date == true)
                {
                    iHour = HAdmin.ToMoscowTimeZone(DateTime.Now).Hour;
                }
                else
                {
                    iHour = serverTime.Hour;
                }
            }
            else
            {
                ;
            }

            if ((iHour % 2) > 0)
            {
                iRes = iHour;
            }
            else
            {
                iRes = iHour + 1;
            }

            return(iRes);
        }
Beispiel #2
0
 public virtual void getCurRDGValues(HAdmin source)
 {
     if (!(m_curRDGValues.Length == source.m_curRDGValues.Length))
     {
         m_prevRDGValues = null;
         m_prevRDGValues = new RDGStruct[source.m_curRDGValues.Length];
     }
     else
     {
     }
 }