Example #1
0
 public void ReverseBranches()
 {
     BranchList.Reverse();
     SetTfsBranches();
     NotifyOfPropertyChange(() => BranchSequence);
     CandidateList.Clear();
 }
Example #2
0
        private void MergingMainViewModel_Deactivated(object sender, DeactivationEventArgs e)
        {
            BranchList.Clear();
            CandidateList.Clear();

            _filterTextChangeTimer?.Dispose();
            _filterTextChangeTimer = null;
        }
Example #3
0
        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();
        }