SaveCurrentDocument() 공개 정적인 메소드

Saves the current document.
public static SaveCurrentDocument ( ) : void
리턴 void
예제 #1
0
파일: Plug.cs 프로젝트: devjerome/3P
        /// <summary>
        /// Called when the user enters any character in npp
        /// </summary>
        /// <param name="c"></param>
        public static void OnSciCharTyped(char c)
        {
            // CTRL + S : char code 19
            if (c == (char)19)
            {
                Npp.Undo();
                Npp.SaveCurrentDocument();
                return;
            }

            // we are still entering a keyword
            if (Abl.IsCharAllowedInVariables(c))
            {
                ActionsAfterUpdateUi.Enqueue(() => {
                    OnCharAddedWordContinue(c);
                });
            }
            else
            {
                ActionsAfterUpdateUi.Enqueue(() => {
                    OnCharAddedWordEnd(c);
                });
            }
        }