示例#1
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();
        }