port.Disconnect();
int port = int.Parse(drpPort.Text); int baud=int.Parse(drpBaudRate.Text); int timeout = int.Parse(drpTimeOut.Text); comm = new GsmCommMain(port, baud,timeout); comm.Open(); if (comm.IsOpen()) { btnBaglan.Enabled = false; btniptal.Enabled = true; MessageBox.Show("Porta başarılı bir şekilde bağlandınız!!", "Dikkat!", MessageBoxButtons.OK, MessageBoxIcon.Information); lblBeklemede.Text = "Porta Bağlandı"; bilgiler(); } else { comm.Open(); }
using
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)