Example #1
0
 static void Main(string[] args)
 {
     if (args.Length == 1)
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         string solutionDir        = args[0];
         string metaFile           = Path.Combine(solutionDir, "Release.config");
         var    releaseInformation = ReleaseInformationHelper.Load(metaFile);
         Application.Run(new MainForm(releaseInformation, metaFile));
     }
 }
Example #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            var newReleaseInformation = new ReleaseInformation();

            newReleaseInformation.Version         = new Version(btnMajor.Value, btnMinor.Value, btnBuild.Value, btnRevision.Value);
            newReleaseInformation.FriendlyVersion = txtFriendlyVersion.Text.Trim();
            newReleaseInformation.ReleaseDate     = ReleaseInformation.ReleaseDate;
            newReleaseInformation.ReleaseNotes    = txtReleaseNotes.Text;
            if (newReleaseInformation.Version.CompareTo(ReleaseInformation.Version) <= 0)
            {
                if (MessageBox.Show(this, "You should increase the version number for this release.",
                                    Text, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
                {
                    return;
                }
            }
            ReleaseInformationHelper.Save(newReleaseInformation, MetaFile);
            Close();
        }