Пример #1
0
 void IViewContent.Load(FileOpenInformation fileOpenInformation)
 {
     this.textEditorImpl.DirtyChanged -= HandleDirtyChanged;
     this.textEditor.TextChanged      -= HandleTextChanged;
     textEditorImpl.Load(fileOpenInformation);
     RunFirstTimeFoldUpdate(textEditor.Text);
     textEditorImpl.InformLoadComplete();
     this.textEditor.TextChanged      += HandleTextChanged;
     this.textEditorImpl.DirtyChanged += HandleDirtyChanged;
 }
Пример #2
0
        public override async Task Load(FileOpenInformation fileOpenInformation)
        {
            textEditorImpl.ViewContent.DirtyChanged -= HandleDirtyChanged;
            textEditor.TextChanged -= HandleTextChanged;
            await textEditorImpl.ViewContent.Load(fileOpenInformation);

            await RunFirstTimeFoldUpdate(textEditor.Text);

            textEditorImpl.InformLoadComplete();
            textEditor.TextChanged += HandleTextChanged;
            textEditorImpl.ViewContent.DirtyChanged += HandleDirtyChanged;
        }
Пример #3
0
        async Task Load(bool reloading)
        {
            textEditorImpl.DirtyChanged -= HandleDirtyChanged;
            textEditor.TextChanged      -= HandleTextChanged;
            await textEditorImpl.Load(FilePath, Encoding, reloading);

            await RunFirstTimeFoldUpdate(textEditor.Text);

            textEditorImpl.InformLoadComplete();
            textEditor.TextChanged      += HandleTextChanged;
            textEditorImpl.DirtyChanged += HandleDirtyChanged;
        }