/// <summary>
        ///
        /// </summary>
        public COMMBasePortPlus(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
        {
            InitializeComponent();
            this.Init(argForm, argCOMM, argRichTextBox);

            this.AddEventHandler();
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        public COMMSerialPortPlus(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
        {
            InitializeComponent();
            this.Init(argForm, argCOMM, argRichTextBox);

            this.AddEventHandler();

            //this.AddWatcherPortRemoveEvent();
        }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="argForm"></param>
 /// <param name="argCOMM"></param>
 /// <param name="argComboBox"></param>
 /// <param name="argRichTextBox"></param>
 public override void Init(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox, bool isRefreshDevice)
 {
     base.m_COMMForm        = argForm;
     this.m_COMMPort        = (COMMSerialPort)argCOMM;
     base.m_COMMRichTextBox = argRichTextBox;
     //---判断是否属性设备
     if (isRefreshDevice)
     {
         this.m_COMMPort.GetPortNames(this.m_COMMComboBox, argRichTextBox);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="argForm"></param>
 /// <param name="argCOMM"></param>
 /// <param name="argRichTextBox"></param>
 /// <param name="isRefreshDevice"></param>
 /// <param name="isAddWatcherPort"></param>
 public override void Init(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox, bool isRefreshDevice, bool isAddWatcherPort)
 {
     base.m_COMMForm        = argForm;
     this.m_COMMPort        = (COMMSerialPort)argCOMM;
     base.m_COMMRichTextBox = argRichTextBox;
     //---判断是否属性设备
     if (isRefreshDevice == true)
     {
         if (this.m_COMMPort != null)
         {
             this.m_COMMPort.GetPortNames(this.m_COMMComboBox, argRichTextBox);
         }
     }
     if (isAddWatcherPort == true)
     {
         //---注册端口监控
         base.AddWatcherPort();
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="argForm"></param>
 /// <param name="argCOMM"></param>
 /// <param name="argRichTextBox"></param>
 /// <param name="isRefreshDevice"></param>
 /// <param name="isAddWatcherPort"></param>
 public virtual void Init(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox, bool isRefreshDevice, bool isAddWatcherPort)
 {
     this.m_COMMForm        = argForm;
     this.m_COMMRichTextBox = argRichTextBox;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="argForm"></param>
 /// <param name="argCOMM"></param>
 /// <param name="argComboBox"></param>
 /// <param name="argRichTextBox"></param>
 public virtual void Init(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
 {
     this.m_COMMForm        = argForm;
     this.m_COMMRichTextBox = argRichTextBox;
 }
 /// <summary>
 ///
 /// </summary>
 public virtual void Init()
 {
     this.commForm        = null;
     this.commRichTextBox = null;
     this.commPort        = null;
 }
Exemplo n.º 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="argForm"></param>
 /// <param name="argCOMM"></param>
 /// <param name="argComboBox"></param>
 /// <param name="argRichTextBox"></param>
 public override void Init(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
 {
     base.m_COMMForm        = argForm;
     this.m_COMMPort        = (COMMSerialPort)argCOMM;
     base.m_COMMRichTextBox = argRichTextBox;
 }
Exemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 public COMMSerialPortPlusFull(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
 {
     InitializeComponent();
     this.InitControl();
     this.Init(argForm, argCOMM, argRichTextBox);
 }