public static Draw Instance() { if (instance == null) instance = new Draw(); return instance; }
private void timerStartBeforeEvent_onStart() { Draw.Clear(); draw = Draw.Instance(); var id = Draw.Create(JackPot, stepJackPot); if(id!=null) { draw.id_draw = Convert.ToInt32(id.id_draw.Value); draw.JackPot = id.JackPot.Value; draw.PriceElements = new int[] { 1, 2, 3, 4, 5, 6 }; Lotereya.Hubs.Timing.sendJackPot(); } else { Stop(); } }
public static void Clear() { instance = null; }