Example #1
0
        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);
            }
        }
Example #2
0
        private static void Build(ProjectInfo projectInfo)
        {
            using (var buildContext = new CabwizBuildContext())
            {
                var tasks = projectInfo.CreateBuildTasks();

                var feedback = new BuildFeedbackBase(Console.Out);
                buildContext.Build(tasks, feedback);
            }
        }
Example #3
0
File: CAB42.cs Project: adbre/cab42
        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);
            }
        }