コード例 #1
0
        public ScintillaDocumentWrapper()
        {
            //Document = (new DocumentFactory()).CreateDocument();
            //Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy();

            //Document = TheOneAndOnly.Document;
            
            // remove other listeners
            //RemoveAllChangedHandlers();
            if (PreviousInstance != null)
                PreviousInstance.Dispose();
            PreviousInstance = this;

         //TheOneAndOnly.ClearAll();
            //Document.UndoStack.ClearAll();
            //TheOneAndOnly.Refresh();

    //        TheOneAndOnly.Modified += new Sansguerre.ModifiedHandler(TheOneAndOnly_Modified);
            //Document.DocumentChanged += new DocumentEventHandler(Document_DocumentChanged);
        }
コード例 #2
0
        public ScintillaDocumentWrapper()
        {
            //Document = (new DocumentFactory()).CreateDocument();
            //Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy();

            //Document = TheOneAndOnly.Document;

            // remove other listeners
            //RemoveAllChangedHandlers();
            if (PreviousInstance != null)
            {
                PreviousInstance.Dispose();
            }
            PreviousInstance = this;

            //TheOneAndOnly.ClearAll();
            //Document.UndoStack.ClearAll();
            //TheOneAndOnly.Refresh();

            //        TheOneAndOnly.Modified += new Sansguerre.ModifiedHandler(TheOneAndOnly_Modified);
            //Document.DocumentChanged += new DocumentEventHandler(Document_DocumentChanged);
        }