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); }
public void FinishSession() { if (SelectedSessionViewModel != null) { if (LogDataReceivedEvent != null) { LogDataReceivedEvent -= SelectedSessionViewModel.OnLogDataReceived; } if (ADBLogDataReceivedEvent != null) { ADBLogDataReceivedEvent -= SelectedSessionViewModel.OnADBLogDataReceived; } SessionViewModelCollection.Remove(SelectedSessionViewModel); } }
public bool RemoveSession() { bool isClear = false; if (SelectedSessionViewModel != null) { if (LogDataReceivedEvent != null) { LogDataReceivedEvent -= SelectedSessionViewModel.OnLogDataReceived; } if (ADBLogDataReceivedEvent != null) { ADBLogDataReceivedEvent -= SelectedSessionViewModel.OnADBLogDataReceived; } SessionViewModelCollection.Remove(SelectedSessionViewModel); isClear = true; } return(isClear); }
public void RemoveAll() { SessionViewModelCollection.Clear(); }