public void AddSession() { PerformanceSessionViewModel newSessionVM = new PerformanceSessionViewModel(); LogDataReceivedEvent += newSessionVM.OnLogDataReceived; ADBLogDataReceivedEvent += newSessionVM.OnADBLogDataReceived; SessionViewModelCollection.Add(newSessionVM); }
public void AddSession() { PerformanceSessionViewModel newSessionVM = new PerformanceSessionViewModel(); LogDataReceivedEvent += newSessionVM.OnLogDataReceived; ADBLogDataReceivedEvent += newSessionVM.OnADBLogDataReceived; SessionViewModelCollection.Add(newSessionVM); PerformanceAnalyzerViewModel performanceAnalyzerVM = new PerformanceAnalyzerViewModel(); SessionExplorerVM.Add(performanceAnalyzerVM); Documents.Add(performanceAnalyzerVM); }