// =========================================================================================
        // Constructors
        // =========================================================================================
        /// <summary>
        /// Initializes a new instance of the <see cref="WixBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public WixBuildEventsPropertyPagePanel(WixPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();

            this.editorForm = new WixBuildEventEditorForm(parentPropertyPage.Site);

            // hook up the form to both editors
            this.preBuildEditor.Initialize(parentPropertyPage.ProjectMgr, this.editorForm);
            this.postBuildEditor.Initialize(parentPropertyPage.ProjectMgr, this.editorForm);

            this.preBuildEditor.TextBox.Tag = WixProjectFileConstants.PreBuildEvent;
            this.postBuildEditor.TextBox.Tag = WixProjectFileConstants.PostBuildEvent;
            this.runPostBuildComboBox.Tag = WixProjectFileConstants.RunPostBuildEvent;
        }
예제 #2
0
 public void Initialize(WixProjectNode project, WixBuildEventEditorForm editorForm)
 {
     this.project = project;
     this.editorForm = editorForm;
 }