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