/// <summary>
        /// Initializes a new instance of the <see cref="ToolSelectedRowControl"/> class.
        /// </summary>
        public ToolSelectedRowControl()
        {
            this.InitializeComponent();

            Action <RowInfoModel> action = ChangeToolOptions;

            RowTrackerService.SetDelegate(action);
            this.DataContext = this;
        }
Example #2
0
        private void CreateVisuals(ITextViewLine line)
        {
            int linePosition = 1;

            foreach (var snapshotLine in view.TextSnapshot.Lines)
            {
                if (line.Start.Position >= snapshotLine.Start.Position && line.End.Position <= snapshotLine.End.Position)
                {
                    break;
                }

                linePosition++;
            }

            RowTrackerService.SetValue(new Models.RowInfoModel()
            {
                Number = linePosition,
                Text   = view.TextSnapshot.Lines.ToList()[linePosition - 1].GetText()
            });
        }