示例#1
0
 public void SetUp()
 {
     main = Map.Instance();
     Logger.GetInstance().AllowLogging = true;
     view = LoggerView.Instance();
     viewmodel = (LoggerViewModel)view.DataContext;
 }
示例#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;
        }
示例#3
0
 public void SetUp()
 {
     vm = LoggerViewModel.Instance();
 }
示例#4
0
        /// <summary>
        /// Returns this instance.
        /// </summary>
        /// <returns>this instance.</returns>
        public static LoggerViewModel Instance()
        {
            if (instance == null)
            {
                instance = new LoggerViewModel();
            }

            return instance;
        }