public WaitForStatAction( IfAction.IfVarType stat, byte dir, int val ) { m_Stat = stat; m_Direction = dir; m_Value = val; m_Timeout = TimeSpan.FromMinutes( 60.0 ); }
public WaitForStatAction( string[] args ) { m_Stat = (IfAction.IfVarType)Convert.ToInt32( args[1] ); m_Direction = Convert.ToByte( args[2] ); m_Value = Convert.ToInt32( args[3] ); try { m_Timeout = TimeSpan.FromSeconds( Convert.ToDouble( args[4] ) ); } catch { m_Timeout = TimeSpan.FromMinutes( 60.0 ); } }