Beispiel #1
0
        public override bool Equals(object obj)
        {
            DriAuxFormat auxFormat = obj as DriAuxFormat;

            if (auxFormat != null && this == auxFormat)
            {
                return(true);
            }
            return(false);
        }
Beispiel #2
0
        /// <summary>
        /// Upon receipt of the SetAuxParameters action, the DRIT SHALL select the required inputs, detect signal presence, and format in less than 5 seconds.
        /// </summary>
        /// <param name="selectType">This argument sets the InputType state variable.</param>
        /// <param name="selectInput">This argument sets the InputNumber state variable.</param>
        /// <param name="selectFormat">This argument sets the Format state variable.</param>
        /// <param name="actualFormat">This argument reflects the value of the Format state variable.</param>
        /// <param name="currentGenLock">This argument provides the value of the GenLock state variable when the action response is created.</param>
        /// <returns><c>true</c> if the action is executed, otherwise <c>false</c></returns>
        public bool SetAuxParameters(DriInputType selectType, byte selectInput, DriAuxFormat selectFormat,
                                     out DriAuxFormat actualFormat, out bool currentGenLock)
        {
            actualFormat   = DriAuxFormat.Unknown;
            currentGenLock = false;
            if (_service == null)
            {
                Log.Log.Debug("DRI: device {0} does not implement an Aux service", _device.UDN);
                return(false);
            }

            IList <object> outParams = _setAuxParametersAction.InvokeAction(new List <object> {
                selectType.ToString(), selectInput, selectFormat.ToString()
            });

            actualFormat   = (DriAuxFormat)(string)outParams[0];
            currentGenLock = (bool)outParams[1];
            return(true);
        }
Beispiel #3
0
    /// <summary>
    /// Upon receipt of the SetAuxParameters action, the DRIT SHALL select the required inputs, detect signal presence, and format in less than 5 seconds.
    /// </summary>
    /// <param name="selectType">This argument sets the InputType state variable.</param>
    /// <param name="selectInput">This argument sets the InputNumber state variable.</param>
    /// <param name="selectFormat">This argument sets the Format state variable.</param>
    /// <param name="actualFormat">This argument reflects the value of the Format state variable.</param>
    /// <param name="currentGenLock">This argument provides the value of the GenLock state variable when the action response is created.</param>
    /// <returns><c>true</c> if the action is executed, otherwise <c>false</c></returns>
    public bool SetAuxParameters(DriInputType selectType, byte selectInput, DriAuxFormat selectFormat,
                                out DriAuxFormat actualFormat, out bool currentGenLock)
    {
      actualFormat = DriAuxFormat.Unknown;
      currentGenLock = false;
      if (_service == null)
      {
        Log.Log.Debug("DRI: device {0} does not implement an Aux service", _device.UDN);
        return false;
      }

      IList<object> outParams = _setAuxParametersAction.InvokeAction(new List<object> {
        selectType.ToString(), selectInput, selectFormat.ToString()
      });
      actualFormat = (DriAuxFormat)(string)outParams[0];
      currentGenLock = (bool)outParams[1];
      return true;
    }