コード例 #1
0
        public ScreensaverViewModel(TV tv)
        {
            this.tv   = tv;
            this.tvId = tv.Register(this);

            loadTv();
            createTimer();
        }
コード例 #2
0
        public static TumblrTV GetInstance(int numTvs, AppSettings settings = null)
        {
            if (TumblrTV.instance == null)
            {
                if (settings == null)
                {
                    throw new ArgumentNullException("Settings cannot be null during initialization");
                }

                TumblrTV.instance = new TumblrTV(numTvs, settings);
            }
            return(TumblrTV.instance);
        }