private void tsbBuildCab_Click(object sender, EventArgs e) { if (this.BuildProject != null) { if (this.HasUnsaved()) { this.Save(); } using (var f = new BuildForm()) { using (var buildContext = new CabwizBuildContext()) { f.BuildTasks = this.BuildProject.CreateBuildTasks(); f.Context = buildContext; f.ShowDialog(this); } } } else { MessageBox.Show(this, "No project is currently opened", this.tsbBuildCab.Text); } }
private void tsbBuildCab_Click(object sender, EventArgs e) { if (this.BuildProject != null) { if (this.HasUnsaved()) { this.Save(); } using (var f = new BuildForm()) { using (var buildContext = new CabwizBuildContext()) { f.BuildTasks = this.BuildProject.CreateBuildTasks(); f.Context = buildContext; f.ShowDialog(this); } } } else { MessageBox.Show(this, "No project is currently opened", this.tsbBuildCab.Text); } }