Example #1
0
 public void SetUp()
 {
     main = Map.Instance();
     Logger.GetInstance().AllowLogging = true;
     view = LoggerView.Instance();
     viewmodel = (LoggerViewModel)view.DataContext;
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LoggerViewModel"/> class.
        /// </summary>
        public LoggerViewModel()
        {
            this.logs = new Collection<LogMessage>();
            this.show = new ObservableCollection<LogMessage>();

            this.type = LoggerEnum.AllString.ToString();
            instance = this;
        }
Example #3
0
 public void SetUp()
 {
     vm = LoggerViewModel.Instance();
 }
Example #4
0
        /// <summary>
        /// Returns this instance.
        /// </summary>
        /// <returns>this instance.</returns>
        public static LoggerViewModel Instance()
        {
            if (instance == null)
            {
                instance = new LoggerViewModel();
            }

            return instance;
        }