public formMicrocontrollerStatus(SerialPortSave settings) { InitializeComponent(); this.settings = settings; string[] aCOMPortsArray = SerialPort.GetPortNames(); for (int i = 0; i < aCOMPortsArray.Length; i++) { cbxSerialPort.Items.Add(aCOMPortsArray[i]); } }
public formGraphs(Data data, SerialPortSave settings) { _data = data; this.settings = settings; InitializeComponent(); }