コード例 #1
0
        public void AddSession()
        {
            PerformanceSessionViewModel newSessionVM = new PerformanceSessionViewModel();

            LogDataReceivedEvent    += newSessionVM.OnLogDataReceived;
            ADBLogDataReceivedEvent += newSessionVM.OnADBLogDataReceived;
            SessionViewModelCollection.Add(newSessionVM);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void FinishSession()
        {
            if (SelectedSessionViewModel != null)
            {
                if (LogDataReceivedEvent != null)
                {
                    LogDataReceivedEvent -= SelectedSessionViewModel.OnLogDataReceived;
                }
                if (ADBLogDataReceivedEvent != null)
                {
                    ADBLogDataReceivedEvent -= SelectedSessionViewModel.OnADBLogDataReceived;
                }

                SessionViewModelCollection.Remove(SelectedSessionViewModel);
            }
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 public void RemoveAll()
 {
     SessionViewModelCollection.Clear();
 }