Ejemplo n.º 1
0
 void meter_StateChanged(DelayedTimedMeter meter, MeterState ny)
 {
     switch (ny)
       {
     case MeterState.Waiting: ststatus.Text = "Waiting..."; ststatus.ForeColor = Color.Orange; break;
     case MeterState.Stopped: ststatus.Text = "Stopped!"; ststatus.ForeColor = Color.Red; break;
     case MeterState.Running: ststatus.Text = "Running!"; ststatus.ForeColor = Color.Green; break;
       }
 }
Ejemplo n.º 2
0
 void singletarget_Ticked(DelayedTimedMeter meter)
 {
     // Add a point.
       int i = dpschart.Series[0].Points.AddXY(singletarget.TimePassed.TotalSeconds, singletarget.Result);
       dpschart.Series[0].Points[i].ToolTip = string.Format("{0} DPS", singletarget.Result);
 }