public WpfViewContent(OpenedFile file) : base(file) { SharpDevelopTranslations.Init(); BasicMetadata.Register(); this.TabPageText = "${res:FormsDesigner.DesignTabPages.DesignTabPage}"; this.IsActiveViewContentChanged += OnIsActiveViewContentChanged; }
public WpfViewContent(OpenedFile file) : base(file) { SharpDevelopTranslations.Init(); BasicMetadata.Register(); WpfToolbox.Instance.AddProjectDlls(file); ProjectService.ProjectItemAdded += ProjectService_ProjectItemAdded; this.TabPageText = "${res:FormsDesigner.DesignTabPages.DesignTabPage}"; this.IsActiveViewContentChanged += OnIsActiveViewContentChanged; }
public WpfViewContent(OpenedFile file) : base(file) { SharpDevelopTranslations.Init(); BasicMetadata.Register(); this.TabPageText = "${res:FormsDesigner.DesignTabPages.DesignTabPage}"; this.IsActiveViewContentChanged += OnIsActiveViewContentChanged; var compilation = SD.ParserService.GetCompilationForFile(file.FileName); _path = Path.GetDirectoryName(compilation.MainAssembly.UnresolvedAssembly.Location); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; }