private void            fastColoredTextBox_Code_LineRemoved(object aSender, FastColoredTextBoxNS.LineRemovedEventArgs aEventArgs)
 {
     foreach (int lId in aEventArgs.RemovedLineUniqueIds)
     {
         mErrorsLineId.Remove(lId);
     }
 }
Пример #2
0
 private void fctb1_LineRemoved(object sender, FastColoredTextBoxNS.LineRemovedEventArgs e)
 {
     if (!loadingfile)
     {
         timer3.Start();
     }
 }
Пример #3
0
        protected virtual void tb_LineRemoved(object sender, LineRemovedEventArgs e)
        {
            for (int i = 0; i < Count; i++)
            {
                if (items[i].LineIndex >= e.Index)
                {
                    if (items[i].LineIndex >= e.Index + e.Count)
                    {
                        items[i].LineIndex = items[i].LineIndex - e.Count;
                        continue;
                    }

                    var was = e.Index <= 0;
                    foreach (var b in items)
                    {
                        if (b.LineIndex == e.Index - 1)
                        {
                            was = true;
                        }
                    }

                    if (was)
                    {
                        items.RemoveAt(i);
                        i--;
                    }
                    else
                    {
                        items[i].LineIndex = e.Index - 1;
                    }
                }
            }
        }
Пример #4
0
 void tb_LineRemoved(object sender, LineRemovedEventArgs e)
 {
     for (int i = 0; i < Count; i++)
     {
         if (items[i].LineIndex >= e.Index)
         {
             if (items[i].LineIndex < e.Index + e.Count)
             {
                 items.RemoveAt(i);
                 i--;
             }
             else
             {
                 items[i].LineIndex = items[i].LineIndex - e.Count;
             }
         }
     }
 }
Пример #5
0
 protected virtual void tb_LineRemoved(object sender, LineRemovedEventArgs e)
 {
     for (int i = 0; i < Count; i++)
     {
         if (items[i].LineIndex >= e.Index)
         {
             if (items[i].LineIndex >= e.Index + e.Count)
             {
                 items[i].LineIndex = items[i].LineIndex - e.Count;
                 continue;
             }
             if (items[i].LineIndex == e.Index + e.Count - 1)
             {
                 items[i].LineIndex = items[i].LineIndex - e.Count;
                 continue;
             }
             items.RemoveAt(i);
             i--;
         }
     }
 }
Пример #6
0
 private void fctb_LineRemoved(object sender, FastColoredTextBoxNS.LineRemovedEventArgs e)
 {
 }
Пример #7
0
 void fctbDocument_LineRemoved(object sender, FastColoredTextBoxNS.LineRemovedEventArgs e)
 {
     //  throw new NotImplementedException();
 }