public Form1() { InitializeComponent(); comWorkWay.SelectedIndex = 0; comBaudRate.SelectedIndex = 0; ScanCom(); updateTxt = new UpdateTxt(UpdateTxtMethod); updateListBox = new UpdateListBox(UpdateListBoxMethod); }
private void Form1_Load(object sender, EventArgs e) { updateTxt = new UpdateTxt(UpdateTxtMethod); updateListBox = new UpdateListBox(UpdateListBoxMethod); }