public WpfViewContent(OpenedFile file) : base(file)
        {
            SharpDevelopTranslations.Init();

            BasicMetadata.Register();

            this.TabPageText = "${res:FormsDesigner.DesignTabPages.DesignTabPage}";
            this.IsActiveViewContentChanged += OnIsActiveViewContentChanged;
        }
Beispiel #2
0
        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;
		}
		public static void Init() {
			Instance = new SharpDevelopTranslations();
		}
Beispiel #5
0
 public static void Init()
 {
     Instance = new SharpDevelopTranslations();
 }