public oBoulderingTimer(int time, string connectionString, bool mainTimer, EKBListener sl)
     : this(sl)
 {
     this.time      = time;
     minElapsed     = this.time;
     secElapsed     = 0;
     this.cn        = new SqlConnection(connectionString);
     this.mainTimer = mainTimer;
     //if(sl == null)
     timer.Start();
     watch.Start();
 }
        public oBoulderingTimer(int time,
                                SoundPlayer oneMinute, SoundPlayer getReady, SoundPlayer rotate,
                                SqlConnection baseCon, bool mainTimer, EKBListener sl)
            : this(sl)
        {
            this.time  = time;
            minElapsed = this.time;
            secElapsed = 0;

            this.oneMinute = oneMinute;
            this.getReady  = getReady;
            this.rotate    = rotate;
            this.cn        = new SqlConnection(baseCon.ConnectionString);
            this.mainTimer = mainTimer;
            //if(sl == null)
            timer.Start();
            watch.Start();
        }
        private oBoulderingTimer(EKBListener sl)
        {
            timer           = new System.Timers.Timer();
            timer.Interval  = SEC_INT;
            timer.AutoReset = true;
            timer.Elapsed  += new System.Timers.ElapsedEventHandler(timer_Elapsed);
            mTimer          = new Mutex();

            timer1           = new System.Timers.Timer();
            timer1.AutoReset = false;
            timer1.Interval  = UPD_INT * SEC_INT;
            timer1.Stop();
            timer1.Elapsed += new System.Timers.ElapsedEventHandler(t2_Tick);
            if (sl != null)
            {
                this.sl = sl;
                //this.sl.SystemListenerEvent += new SystemListener.SystemListenerEventHandler(sl_SystemListenerEvent);
                //this.sl.StartListening();
                sl.SubscribeEvent(sl_SystemListenerEvent);
            }
        }
 public oBoulderingTimer(int time, SqlConnection baseCon, bool mainTimer, EKBListener sl) :
     this(time, baseCon.ConnectionString, mainTimer, sl)
 {
 }