Esempio n. 1
0
 private void btn_scale_open_Click(object sender, EventArgs e)
 {
     if (ScalesAsst.OpenDevice())
     {
         ScalesAsst.SetGaugePara(this.aGauge4);
         this.timer1.Start();
         this.btn_scale_close.Enabled = true;
         this.btn_scale_open.Enabled  = false;
     }
 }
Esempio n. 2
0
 private void btn_scale_close_Click(object sender, EventArgs e)
 {
     this.timer1.Stop();
     ScalesAsst.CloseDevice();
     this.lamp_irda1.ButtonColour = Color.Yellow;
     this.lamp_irda2.ButtonColour = Color.Yellow;
     this.txt_scale_unit.Text     = string.Empty;
     this.txt_scale_sign.Text     = string.Empty;
     this.txt_scale_weigh.Text    = string.Empty;
     this.btn_scale_close.Enabled = false;
     this.btn_scale_open.Enabled  = true;
 }