Exemplo n.º 1
0
 private void vcc_Click(object sender, EventArgs e)
 {
     try
     {
         frmLecturaBascula frm = new frmLecturaBascula(2);
         frm.ShowDialog();
         this.txtPesoSalida.Text    = frm.Peso.ToString();
         this.dtpFechaSalida.Value  = DateTime.Now;
         this.txtPesadorSalida.Text = WSConnector.Instance.NombreUsuario;
     }
     catch (Exception ex)
     {
         Logger.Instance.LogException(ex);
     }
 }
Exemplo n.º 2
0
 private void btnObtener1_Click(object sender, EventArgs e)
 {
     try
     {
         frmLecturaBascula frm = new frmLecturaBascula(1);
         frm.ShowDialog();
         this.txtPesoEntrada.Text    = frm.Peso.ToString();
         this.dtpFechaEntrada.Value  = DateTime.Now;
         this.txtPesadorEntrada.Text = WSConnector.Instance.NombreUsuario;
         this.CheckEnabledObteners();
     }
     catch (Exception ex)
     {
         Logger.Instance.LogException(ex);
     }
 }