public HomeViewModel() { currentInstance = this; this.refreshTimer.Tick += this.RefreshTimer_Tick; this.refreshTimer.Start(); this.ChatLogs.CollectionChanged += (_, __) => HomeView.SendScrollToEndLog(); ChatLogger.OnWrite += (_, e) => this.AddLog(e); }