示例#1
0
        } // DiscoverOptions

        #endregion

        #region ctor
        // -------------------------------------------------------------------------
        /// <summary>
        /// Default constructor
        /// </summary>
        // -------------------------------------------------------------------------
        public CommPortOptions(CommPortErrors errorHandler)
        {
            commPortError      = errorHandler;
            portNameOptions    = new List <string>();
            baudRateOptions    = new List <string>(AllBaudRates);
            databitOptions     = new List <string>(AllDataBits);
            parityOptions      = new List <string>();
            stopbitOptions     = new List <string>();
            flowControlOptions = new List <string>();
            DiscoverOptions();
        } // ctor
示例#2
0
 // -------------------------------------------------------------------------
 /// <summary>
 /// Default constructor
 /// </summary>
 // -------------------------------------------------------------------------
 public CommPortIO()
 {
     errors  = new CommPortErrors();
     options = new CommPortOptions(errors);
 } // ctor