Esempio n. 1
0
        public MainPage()
        {
            InitializeComponent();
            diffTimer = new Timer(DiffTimerCallback, null, 0, TimerPollFrequency);
            nonModifyingKeys = new List<Key>
                                   {
                                       Key.Shift,
                                       Key.Up,
                                       Key.Left,
                                       Key.Right,
                                       Key.Down,
                                       Key.PageDown,
                                       Key.PageUp,
                                       Key.Alt,
                                       Key.CapsLock,
                                       Key.Ctrl,
                                       Key.Escape
                                   };

            scrollSynchronizer = new ScrollViewerSynchronizer(new List<ScrollViewer> {LeftScroller, RightScroller});
            diffRenderer = new TextBoxDiffRenderer(LeftDiffGrid, LeftBox, RightDiffGrid, RightBox);
        }
Esempio n. 2
0
        public MainPage()
        {
            InitializeComponent();
            diffTimer        = new Timer(DiffTimerCallback, null, 0, TimerPollFrequency);
            nonModifyingKeys = new List <Key>
            {
                Key.Shift,
                Key.Up,
                Key.Left,
                Key.Right,
                Key.Down,
                Key.PageDown,
                Key.PageUp,
                Key.Alt,
                Key.CapsLock,
                Key.Ctrl,
                Key.Escape
            };

            scrollSynchronizer = new ScrollViewerSynchronizer(new List <ScrollViewer> {
                LeftScroller, RightScroller
            });
            diffRenderer = new TextBoxDiffRenderer(LeftDiffGrid, LeftBox, RightDiffGrid, RightBox);
        }