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

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

            this.AddEventHandler();

            //this.AddWatcherPortRemoveEvent();
        }
Ejemplo 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);
     }
 }
Ejemplo 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();
     }
 }
Ejemplo n.º 5
0
 /// <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;
 }
Ejemplo n.º 6
0
 /// <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;
 }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 public virtual void Init()
 {
     this.commForm        = null;
     this.commRichTextBox = null;
     this.commPort        = null;
 }
Ejemplo 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;
 }
Ejemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 public COMMSerialPortPlusFull(Form argForm, COMMBasePort argCOMM, RichTextBox argRichTextBox)
 {
     InitializeComponent();
     this.InitControl();
     this.Init(argForm, argCOMM, argRichTextBox);
 }