示例#1
0
 /// <summary>
 /// Prevents a default instance of the <see cref="LoggerView"/> class from being created.
 /// </summary>
 private LoggerView()
 {
     instance = this;
     this.InitializeComponent();
     LoggerViewModel.Instance().Scroll = this.scrollPane;
     this.DataContext = LoggerViewModel.Instance();
 }
示例#2
0
 public void SetUp()
 {
     main = Map.Instance();
     Logger.GetInstance().AllowLogging = true;
     view = LoggerView.Instance();
     viewmodel = (LoggerViewModel)view.DataContext;
 }