Пример #1
0
        private void Loader()
        {
            CleanBoxData();

            if (Number_Of_Lines > ListLines.Count)
            {
                Number_Of_Lines = ListLines.Count;
            }
            LineNumber = 0;
            ListLines.Insert(0, "=================== Start Of The File ===================");
            ListLines.Add("=================== End Of The File ===================");

            for (int i = 0; i < Number_Of_Lines; i++)
            {
                rtbEditor.AppendText("=> " + ListLines[i]);
                rtbEditor.AppendText("\n");

                SuffixColumns.AppendText(i + " ===== ");
                SuffixColumns.AppendText("\n");

                SuffixBox.AppendText(i + ":");
                SuffixBox.AppendText("\n");
            }
            Current_Line = 1;
            Highlight(1);
        }
Пример #2
0
        private void Update(int start, int end)
        {
            CleanBoxData();

            if (end > ListLines.Count)
            {
                end = ListLines.Count;
            }

            if (end <= 0)
            {
                end = 2;
            }

            if (start >= end)
            {
                start = end - 1;
            }

            if (start < 0)
            {
                start = 0;
            }



            for (int i = start; i < end; i++)
            {
                rtbEditor.AppendText("=> " + ListLines[i]);
                rtbEditor.AppendText("\n");

                SuffixColumns.AppendText(i + " ===== ");
                SuffixColumns.AppendText("\n");

                SuffixBox.AppendText(i + ":");
                SuffixBox.AppendText("\n");
            }

            //Highlight(0);//first item
        }
Пример #3
0
 private void CleanBoxData()
 {
     rtbEditor.Document.Blocks.Clear();
     SuffixBox.Clear();
     SuffixColumns.Clear();
 }