Ejemplo n.º 1
0
        /// <summary>
        /// Class constructor
        /// </summary>
        public AppViewModel()
        {
            _cancelTokenSource = new CancellationTokenSource();
            _DiffProgress      = new DiffProgressViewModel();

            _FilePathA = new SuggestSourceViewModel();
            _FilePathB = new SuggestSourceViewModel();

            _InlineDialog = InlineDialogMode.None;
            _DiffCtrl     = new DiffDocViewModel();


            _GotoLineController = new GotoLineControllerViewModel(DiffCtrl.GotoTextLine, ToogleInlineDialog);
            _OptionsController  = new OptionsControllerViewModel(ToogleInlineDialog);

            _FocusControl = Focus.LeftFilePath;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Class constructor
        /// </summary>
        public AppViewModel()
        {
            _FocusControl = Focus.LeftView;

            ViewModesA         = new List <DisplayMode>(new DisplayMode[] { DisplayMode.Comparing, DisplayMode.Editing });
            _ViewModeASelected = ViewModesA.First();

            ViewModesB         = new List <DisplayMode>(new DisplayMode[] { DisplayMode.Comparing, DisplayMode.Editing });
            _ViewModeBSelected = ViewModesB.First();

            _cancelTokenSource = new CancellationTokenSource();
            _DiffProgress      = new DiffProgressViewModel();

            _FilePathA = new SuggestSourceViewModel();
            _FilePathB = new SuggestSourceViewModel();

            _InlineDialog = InlineDialogMode.None;
            _DiffCtrl     = new DiffDocViewModel(this);

            _GotoLineController = new GotoLineControllerViewModel(DiffCtrl.GotoTextLine, ToogleInlineDialog);
            _OptionsController  = new OptionsControllerViewModel(ToogleInlineDialog);
        }