Exemplo n.º 1
0
        public CodeEditorContent(CodeEditorExtension extension, OpenedFile sourceFile)
            : base(extension)
        {
            this.AssociatedFile = sourceFile;
            this.AssociatedFile.FilePathChanged += AssociatedFile_FilePathChanged;

            _extensionHost = extension.ExtensionHost;

            this.Text = sourceFile.FilePath.FileName + sourceFile.FilePath.Extension;
            this.Control = _editorControl = new CodeEditorControl(this, sourceFile)
            {
                Dock = DockStyle.Fill,
            };
        }
Exemplo n.º 2
0
        public CodeEditorContent(CodeEditorExtension extension, OpenedFile sourceFile)
            : base(extension)
        {
            this.AssociatedFile = sourceFile;
            this.AssociatedFile.FilePathChanged += AssociatedFile_FilePathChanged;

            _extensionHost = extension.ExtensionHost;

            this.Text    = sourceFile.FilePath.FileName + sourceFile.FilePath.Extension;
            this.Control = _editorControl = new CodeEditorControl(this, sourceFile)
            {
                Dock = DockStyle.Fill,
            };
        }