private void dlgOpenPip_FileOk(object sender, CancelEventArgs e) { _pipFile = new PIPFile(dlgOpenPip.FileName, txtComPort.Text, int.Parse(txtBaudRate.Text), dataReceived); _pipFile.Load(); bndPipFile.DataSource = _pipFile; renderPip(); }