Пример #1
0
        public int CompareTo(DiffViewPosition Pos)
        {
            int iResult = Line - Pos.Line;

            if (iResult == 0)
            {
                iResult = Column - Pos.Column;
            }

            return(iResult);
        }
Пример #2
0
        private void View_PositionChanged(object sender, System.EventArgs e)
        {
            DiffView         View = ActiveView;
            DiffViewPosition Pos  = View.Position;

            lblPosition.Text = String.Format("Ln {0}, Col {1}", Pos.Line + 1, Pos.Column + 1);
            UpdateButtons();

            if (View != ViewLineDiff)
            {
                UpdateLineDiff();
            }
        }