Beispiel #1
0
        public GameWonViewModel(double usedTime, DateTime time)
        {
            Time     = time;
            TimeUsed = usedTime;
            Message  = ResourceHelper.FindText("GameWonMessage");

            if (Settings.Default.Difficulty != Difficulty.Custom)
            {
                Details = new GameWonDetailsViewModel();
                if (usedTime == Details.BestTime)
                {
                    // Tell created a record.
                    Message += String.Empty;
                }
            }
        }
        public GameWonViewModel(double usedTime, DateTime time)
        {
            Time = time;
            TimeUsed = usedTime;
            Message = ResourceHelper.FindText("GameWonMessage");

            if (Settings.Default.Difficulty != Difficulty.Custom)
            {
                Details = new GameWonDetailsViewModel();
                if (usedTime == Details.BestTime)
                {
                    // Tell created a record.
                    Message += String.Empty;
                }
            }
        }