PackageFilesView(WixProject project)
        {
            packageFilesControl = new WixPackageFilesControl();
            packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
            TitleName    = StringParser.Parse("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
            this.project = project;

            WorkbenchSingleton.Workbench.ActiveViewContentChanged += ActiveViewContentChanged;
        }
		PackageFilesView(WixProject project)
		{
			packageFilesControl = new WixPackageFilesControl();
			packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
			TitleName = StringParser.Parse("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
			this.project = project;
			
			WorkbenchSingleton.Workbench.ActiveViewContentChanged += ActiveViewContentChanged;
		}
 public override void Dispose()
 {
     if (packageFilesControl != null)
     {
         WorkbenchSingleton.Workbench.ActiveViewContentChanged -= ActiveViewContentChanged;
         packageFilesControl.Dispose();
         packageFilesControl = null;
     }
     base.Dispose();
 }
		public override void Dispose()
		{
			if (packageFilesControl != null) {
				WorkbenchSingleton.Workbench.ActiveViewContentChanged -= ActiveViewContentChanged;
				packageFilesControl.Dispose();
				packageFilesControl = null;
			}
			base.Dispose();
		}