Esempio n. 1
0
 public static Draw Instance()
 {
     if (instance == null)
         instance = new Draw();
     return instance;
 }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 public static void Clear()
 {
     instance = null;
 }