private void ShowValue() { if (FlashContrl != null) { FlashContrl.SetVariable("SBQ", TipValue); } }
void ThreadTimerMethod(object o) { if (TipValue != "" && TipValue != "0.00" && TipValue != "0L") { Random ran = new Random(); int n = ran.Next(-1, 2); float v = float.Parse(TipValue) + n * 0.01f; FlashContrl.SetVariable("WYB", string.Format("{0:0.##}", v)); } }
private void ShowTimerMethod(object source, System.Timers.ElapsedEventArgs e) { FlashContrl.SetVariable("WYB", TipValue); }