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(); }
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>(); }
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>(); }