public void ReverseBranches() { BranchList.Reverse(); SetTfsBranches(); NotifyOfPropertyChange(() => BranchSequence); CandidateList.Clear(); }
private void MergingMainViewModel_Deactivated(object sender, DeactivationEventArgs e) { BranchList.Clear(); CandidateList.Clear(); _filterTextChangeTimer?.Dispose(); _filterTextChangeTimer = null; }
private void MergingMainViewModel_Activated(object sender, ActivationEventArgs e) { Shell = IoC.Get <IShell>(); NotifyOfPropertyChange(() => BranchSequence); CandidateList.Clear(); NotifyOfPropertyChange(() => NumCandidates); SetTfsBranches(); FilterText = string.Empty; _filterTextChangeTimer = new System.Timers.Timer(500); _filterTextChangeTimer.AutoReset = true; _filterTextChangeTimer.Elapsed += _filterTextChangeTimer_Elapsed; if (CurrentOptions == null) { CurrentOptions = new MyOptions(); } else { CurrentOptions.SetDefaultOptions(); } Refresh(); }