Ejemplo n.º 1
0
 private void btnApply_Click(object sender, EventArgs e)
 {
     mainForm mainform = new mainForm();
     SendDataConfig = new sendDataConfig(mainform.getDataConfig);
     ReportingType none = ReportingType.None;
     if (this.chbRssi.Checked)
     {
         none |= ReportingType.RSSI;
     }
     if (!this.chbChecksum.Checked)
     {
         none |= ReportingType.Checksum;
     }
     if (this.chbRealtime.Checked)
     {
         none |= ReportingType.ReadTime;
     }
       //  this.reader.SetReportingType(none);
     if (this.chbBeep.Checked)
     {
         reader.SetBuzzer(true);
     }
     if (this.chbBeep.Checked == false)
     {
         reader.SetBuzzer(false);
     }
 }
Ejemplo n.º 2
0
 private void btnWriteClick(object sender, EventArgs e)
 {
     mainForm MainFrom = new mainForm();
     SendDataWrite = new sendDataWrite(MainFrom.getDataWrite);
     string text = textWrite.Text;
     SendDataWrite(text);
     this.Close();
 }
Ejemplo n.º 3
0
 private void btnCell_click(object sender, EventArgs e)
 {
     mainForm mainF = new mainForm();
     string cell;
     cell = cbCell.Text;
     SendCell = new sendCell(mainF.getCell);
     SendCell(cell);
     this.Hide();
 }