예제 #1
0
        /// <summary>
        /// When the user click on the margin
        /// </summary>
        public static void OnSciMarginClick(SCNotification nc)
        {
            if (!Npp.CurrentFileInfo.IsProgress)
            {
                return;
            }

            // click on the error margin
            if (nc.margin == OpenedFilesInfo.ErrorMarginNumber)
            {
                // if it's an error symbol that has been clicked, the error on the line will be cleared
                if (!OpenedFilesInfo.ClearLineErrors(Sci.LineFromPosition(nc.position.ToInt32())))
                {
                    // if nothing has been cleared, we go to the next error position
                    OpenedFilesInfo.GoToNextError(Sci.LineFromPosition(nc.position.ToInt32()));
                }
            }
        }
예제 #2
0
 private void BtNextErrorOnButtonPressed(object sender, EventArgs buttonPressedEventArgs)
 {
     OpenedFilesInfo.GoToNextError(Sci.Line.CurrentLine + 1);
 }