/// <summary>
 /// Initializes a new instance of the <see cref="NewGameViewModel"/> class.
 /// </summary>
 public NewGameViewModel()
 {
     try
     {
         errorLogViewModel = new ErrorLogViewModel();
         mapTxtAccess = new MapTxtAccess();
         scoreXmlAccess = new ScoresXmlAccess();
         optionsViewModel = new OptionsViewModel();
     }
     catch
     { }
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="NewGameViewModel"/> class.
        /// </summary>
        /// <param name="canvas">The canvas.</param>
        public NewGameViewModel(ref Canvas canvas)
        {
            mapTxtAccess = new MapTxtAccess();
            optionsViewModel = new OptionsViewModel();

            this.canvas = canvas;
            PresetValues1();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="NewGameViewModel"/> class.
        /// </summary>
        /// <param name="canvasWidth">The width of the canvas.</param>
        /// <param name="canvasHeight">The height of the canvas.</param>
        public NewGameViewModel(double canvasWidth, double canvasHeight)
        {
            mapTxtAccess = new MapTxtAccess();
            optionsViewModel = new OptionsViewModel();

            this.canvasWidth = canvasWidth;
            this.canvasHeight = canvasHeight;

            #region SetLabelValues

            //// Show the scorepoints.
            //ScoreLabel.Content = "Score: " + scoreValue;
            //// Show the lifepoints.
            //LifeLabel.Content = "Life: " + lifePoint;
            //// Show the time.
            //TimeLabel.Content = "Time: " + timeOfGame.ToString("HH:mm:ss");

            #endregion SetLabelValues
        }