Exemplo n.º 1
0
Arquivo: Plug.cs Projeto: devjerome/3P
 /// <summary>
 /// When the user click on the margin
 /// </summary>
 public static void OnSciMarginClick(SCNotification nc)
 {
     // click on the error margin
     if (nc.margin == FilesInfo.ErrorMarginNumber)
     {
         // if it's an error symbol that has been clicked, the error on the line will be cleared
         if (!FilesInfo.ClearLineErrors(Npp.LineFromPosition(nc.position)))
         {
             // if nothing has been cleared, we go to the next error position
             FilesInfo.GoToNextError(Npp.LineFromPosition(nc.position));
         }
     }
 }
Exemplo n.º 2
0
 private void BtNextErrorOnButtonPressed(object sender, EventArgs buttonPressedEventArgs)
 {
     FilesInfo.GoToNextError(Npp.Line.CurrentLine + 1);
 }