Esempio n. 1
0
        public virtual void Open(string filename)
        {
            file = FileService.GetOrCreateOpenedFile(filename);
            files.Clear();
            files.Add(file);

            file.CurrentView = this;
            this.Load(file, file.OpenRead());

            textEditorControl.InitializeFormatter();
            textEditorControl.ActivateQuickClassBrowserOnDemand();
            file.CloseIfAllViewsClosed();


            this.ToolTipText = filename;
            TabText          = Path.GetFileName(filename);
            HaveFileName     = true;
        }