public static void UpdateTimer(bool alive, decimal time) { timer.Enabled = alive; timer.Interval = (double)time; }