public CountdownTimerControlViewModel(WindowManager wman)
 {
   //initalization
   tmr = new Timer(countInterval);
   tmr.Elapsed += HandleTimerCountdown;
   _buttonsList = new BindableCollection<Deltagere>(); //basically list of players
   CTBSVM = new CountdowntimerBigScreenViewModel();
   winMan = wman;
   DisplayName = "Nedtællings-kontrolskærm";
 }
        public CountdownTimerControlViewModel(BindableCollection <Team> allTeams, int seconds)
        {
            CTBSVM                = new CountdowntimerBigScreenViewModel();
            this.AllTeams         = new BindableCollection <Team>(allTeams);
            this._currentTimeSpan = new TimeSpan();
            this._localTimeSpan   = new TimeSpan();
            this._emptyTimeSpan   = new TimeSpan();

            //setting up dispatcher and stopwatch
            this._stopWatch      = new Stopwatch();
            this._timer          = new DispatcherTimer();
            this._timer.Tick    += new EventHandler(dispatcherTimer_Tick);
            this._timer.Interval = new TimeSpan(0, 0, 0, 0, milliseconds: 10);
            this._countUp        = true;

            if (seconds > 0)
            {
                this._currentTimeSpan = this._currentTimeSpan.Add(new TimeSpan(0, 0, 0, seconds));
                this.CountDownInput   = seconds;
                this._countUp         = false;
            }
        }