Пример #1
0
 public IfAction( IfVarType var, string text )
 {
     m_Var = var;
     m_Value = text.ToLower();
 }
Пример #2
0
 public IfAction( IfVarType var, sbyte dir, int val )
 {
     m_Var = var;
     m_Direction = dir;
     m_Value = val;
 }
Пример #3
0
 public IfAction( IfVarType var, sbyte dir, int val, string counter )
 {
     m_Var = var;
     m_Direction = dir;
     m_Value = val;
     m_Counter = counter;
 }
Пример #4
0
        public IfAction( string[] args )
        {
            m_Var = (IfVarType)Convert.ToInt32( args[1] );
            try
            {
                m_Direction = Convert.ToSByte( args[2] );
                if ( m_Direction > 1 )
                    m_Direction = 0;
            }
            catch
            {
                m_Direction = -1;
            }

            if ( m_Var != IfVarType.SysMessage )
                m_Value = Convert.ToInt32( args[3] );
            else
                m_Value = args[3].ToLower();

            if ( m_Var == IfVarType.Counter )
                m_Counter = args[4];
        }