/// <summary>
        /// Initializes a new instance of the SysCommonMessage class with the
        /// specified type.
        /// </summary>
        /// <param name="type">
        /// The type of SysCommonMessage.
        /// </param>
        public SysCommonMessage(SysCommonType type)
        {
            msg = (int)type;

            #region Ensure

            Debug.Assert(SysCommonType == type);

            #endregion
        }
Example #2
0
    /// <summary>
    /// Initializes a new instance of the SysCommonMessage class with the
    /// specified type.
    /// </summary>
    /// <param name="type">
    /// The type of SysCommonMessage.
    /// </param>
    public SysCommonMessage(SysCommonType type)
    {
        msg = (int)type;

        #region Ensure

        System.Diagnostics.Debug.Assert(SysCommonType == type);

        #endregion
    }
        /// <summary>
        /// Initializes a new instance of the SysCommonMessage class with the
        /// specified type.
        /// </summary>
        /// <param name="type">
        /// The type of SysCommonMessage.
        /// </param>
        public SysCommonMessage(SysCommonType type)
        {
            msg = (int)type;

            #region Ensure

            Debug.Assert(SysCommonType == type);

            #endregion
        }
        /// <summary>
        /// Initializes a new instance of the SysCommonMessage class with the
        /// specified type and the first data value.
        /// </summary>
        /// <param name="type">
        /// The type of SysCommonMessage.
        /// </param>
        /// <param name="data1">
        /// The first data value.
        /// </param>
        /// <exception cref="ArgumentOutOfRangeException">
        /// If data1 is less than zero or greater than 127.
        /// </exception>
        public SysCommonMessage(SysCommonType type, int data1)
        {
            msg = (int)type;
            msg = PackData1(msg, data1);

            #region Ensure

            Debug.Assert(SysCommonType == type);
            Debug.Assert(Data1 == data1);

            #endregion
        }
Example #5
0
    /// <summary>
    /// Initializes a new instance of the SysCommonMessage class with the
    /// specified type, first data value, and second data value.
    /// </summary>
    /// <param name="type">
    /// The type of SysCommonMessage.
    /// </param>
    /// <param name="data1">
    /// The first data value.
    /// </param>
    /// <param name="data2">
    /// The second data value.
    /// </param>
    /// <exception cref="ArgumentOutOfRangeException">
    /// If data1 or data2 is less than zero or greater than 127.
    /// </exception>
    public SysCommonMessage(SysCommonType type, int data1, int data2)
    {
        msg = (int)type;
        msg = PackData1(msg, data1);
        msg = PackData2(msg, data2);

        #region Ensure

        System.Diagnostics.Debug.Assert(SysCommonType == type);
        System.Diagnostics.Debug.Assert(Data1 == data1);
        System.Diagnostics.Debug.Assert(Data2 == data2);

        #endregion
    }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the SysCommonMessage class with the
 /// specified type and the first data value.
 /// </summary>
 /// <param name="type">
 /// The type of system common message.
 /// </param>
 /// <param name="data1">
 /// The first data value.
 /// </param>
 public SysCommonMessage(SysCommonType type, int data1)
 {
     Type  = type;
     Data1 = data1;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the SysCommonMessage class with the
 /// specified type.
 /// </summary>
 /// <param name="type">
 /// The type of system common message.
 /// </param>
 public SysCommonMessage(SysCommonType type)
 {
     Type = type;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the SysCommonMessage class with the 
 /// specified type, first data value, and second data value.
 /// </summary>
 /// <param name="type">
 /// The type of system common message.
 /// </param>
 /// <param name="data1">
 /// The first data value.
 /// </param>
 /// <param name="data2">
 /// The second data value.
 /// </param>
 public SysCommonMessage(SysCommonType type, int data1, int data2)
 {
     Type = type;
     Data1 = data1;
     Data2 = data2;
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the SysCommonMessage class with the
 /// specified type.
 /// </summary>
 /// <param name="type">
 /// The type of system common message.
 /// </param>
 public SysCommonMessage(SysCommonType type)
 {
     Type = type;
 }
        /// <summary>
        /// Initializes a new instance of the SysCommonMessage class with the 
        /// specified type, first data value, and second data value.
        /// </summary>
        /// <param name="type">
        /// The type of SysCommonMessage.
        /// </param>
        /// <param name="data1">
        /// The first data value.
        /// </param>
        /// <param name="data2">
        /// The second data value.
        /// </param>
        /// <exception cref="ArgumentOutOfRangeException">
        /// If data1 or data2 is less than zero or greater than 127.
        /// </exception>
        public SysCommonMessage(SysCommonType type, int data1, int data2)
        {
            msg = (int)type;
            msg = PackData1(msg, data1);
            msg = PackData2(msg, data2);

            #region Ensure

            Debug.Assert(SysCommonType == type);
            Debug.Assert(Data1 == data1);
            Debug.Assert(Data2 == data2);

            #endregion
        }