Example #1
0
        public void ResetUI()
        {
            Time   = new TextBlockWrapper(_rootViewModel.Time);
            Task   = new TextBlockWrapper(_rootViewModel.Task);
            Score  = new TextBlockWrapper(_rootViewModel.Score);
            Status = new TextBlockWrapper(_rootViewModel.Status);

            _rootViewModel.PuzzleFractions.Clear();
            PuzzleFractions.Clear();
        }
Example #2
0
        public void Load(ContentManager contentManager)
        {
            SpriteFont font = contentManager.Load <SpriteFont>("Segoe_UI_15_Regular");

            FontManager.DefaultFont = Engine.Instance.Renderer.CreateFont(font);

            _rootView      = new RootView();
            _rootViewModel = new RootViewModel();

            _rootView.DataContext = _rootViewModel;

            FontManager.Instance.LoadFonts(contentManager);

            Time            = new TextBlockWrapper(_rootViewModel.Time);
            Task            = new TextBlockWrapper(_rootViewModel.Task);
            Score           = new TextBlockWrapper(_rootViewModel.Score);
            Status          = new TextBlockWrapper(_rootViewModel.Status);
            PuzzleFractions = new List <PuzzleFraction>();
        }
Example #3
0
        public void Load(ContentManager contentManager)
        {
            SpriteFont font = contentManager.Load<SpriteFont>("Segoe_UI_15_Regular");
            FontManager.DefaultFont = Engine.Instance.Renderer.CreateFont(font);

            _rootView = new RootView();
            _rootViewModel = new RootViewModel();

            _rootView.DataContext = _rootViewModel;

            FontManager.Instance.LoadFonts(contentManager);

            Time = new TextBlockWrapper(_rootViewModel.Time);
            Task = new TextBlockWrapper(_rootViewModel.Task);
            Score = new TextBlockWrapper(_rootViewModel.Score);
            Status = new TextBlockWrapper(_rootViewModel.Status);
            PuzzleFractions = new List<PuzzleFraction>();
        }
Example #4
0
        public void ResetUI()
        {
            Time = new TextBlockWrapper(_rootViewModel.Time);
            Task = new TextBlockWrapper(_rootViewModel.Task);
            Score = new TextBlockWrapper(_rootViewModel.Score);
            Status = new TextBlockWrapper(_rootViewModel.Status);

            _rootViewModel.PuzzleFractions.Clear();
            PuzzleFractions.Clear();
        }