Пример #1
0
        private void ComPortItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem Item = (ToolStripMenuItem)sender;

            _ComPort = Item.Text;
            ComPortChanged?.Invoke(this, _ComPort);
        }
Пример #2
0
 protected virtual void OnComPortChange()
 {
     ComPortChanged?.Invoke(this, new ComPortEventArgs {
         ComPortList = Comports
     });
 }