private void Connect() { try { Port = MySms.OpenPort(cboPort.Text); lblStatus.Text = "Ready"; lblConnected.Text = "Connected"; Status.Refresh(); } catch (Exception ex) { MessageDialog.ShowError(ex, this); } }
private void ConnectToGSM() { try { Port = MySms.OpenPort(cboPort.Text); txtStatus.AppendText(CurrentTimeStamp() + "Connected to GSM Modem.\n\n"); lblStatus.Text = @"Connected to GSM Modem"; timer1_Tick(this, EventArgs.Empty); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void ConnectToGSM() { try { Port = MySms.OpenPort(cboPort.Text); txtStatus.AppendText("Connected to GSM Modem\n"); //lblStatus.Text = "Ready"; //lblConnected.Text = "Connected"; //status.Refresh(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }