Exemple #1
0
 private void OnLePesoCallback(double value)
 {
     if (onLePeso.IsAssigned)
     {
         LePesoEventArgs e = new LePesoEventArgs();
         e.Peso = Convert.ToDecimal(value);
         onLePeso.Raise(e);
     }
 }
Exemple #2
0
		private void acbrBAL_OnLePeso(object sender, LePesoEventArgs e)
		{
			if (this.InvokeRequired)
			{
				this.Invoke(new EventHandler<LePesoEventArgs>(acbrBAL_OnLePeso), sender, e);
			}
			else
			{
				this.pesoValueLabel.Text = string.Format("{0:n3}", e.Peso);
			}
		}
Exemple #3
0
		private void OnLePesoCallback(double value)
		{
			if (onLePeso.IsAssigned)
			{
				LePesoEventArgs e = new LePesoEventArgs();
				e.Peso = Convert.ToDecimal(value);
				onLePeso.Raise(e);
			}
		}