Ejemplo n.º 1
0
 private void Pool_OnPoolEvent(object sender, poolEventArgs e)
 {
     //Update the hastrate reported by the pool
     lblNHash.Text = "N.Hashrate:" + e.value;
     chaHash.Series[0].Points.Add(new DataPoint(e.time, e.value));
     if (chaHash.Series[0].Points.Count > 60)
     {
         chaHash.Series[0].Points.RemoveAt(0);
     }
 }
Ejemplo n.º 2
0
        public void PoolEvent(double time, string value)
        {
            // Make sure someone is listening to event
            if (OnPoolEvent == null)
            {
                return;
            }

            poolEventArgs args = new poolEventArgs(time, value);

            OnPoolEvent(this, args);
        }
Ejemplo n.º 3
0
 private void InOnPoolEvent(object sender, poolEventArgs e)
 {
     PoolEvent(e.time, e.value);
 }