Exemplo n.º 1
0
 public NewReleaseForm(DidWeReleaseYet releaseInfo)
 {
     InitializeComponent();
     _newVersion = releaseInfo.Version;
     if (_newVersion == null)
         _newVersion = "";
     var version = Assembly.GetExecutingAssembly().GetName().Version;
     labelTitle.Text = string.Format("Version {0} of ContinuousTests is Now Available (Installed {1}.{2}.{3})", releaseInfo.Version, version.Major, version.Minor, version.Build);
     textBox1.Text = releaseInfo.ReleaseNotes;
     textBox1.SelectionStart = 0;
     textBox1.SelectionLength = 0;
     button1.Left = -1000;
     button1.Select();
     comboBoxCheckFrequency.SelectedIndex = 0;
 }
Exemplo n.º 2
0
 private void CheckForNewVersion()
 {
     if (MMConfiguration.IgnoreThisUpgrade.ToLower() == "all")
         return;
     var checker = new DidWeReleaseYet(() =>
         {
             try
             {
                 var client = new WebClient();
                 return client.DownloadString("http://www.continuoustests.com/version.xml");
             }
             catch (Exception ex)
             {
                 Logger.Write(ex);
             }
             return "";
         });
     
     if (checker.Released())
     {
         if (MMConfiguration.IgnoreThisUpgrade.ToLower() != checker.Version)
             _syncContext.Post(state => new NewReleaseForm(checker).ShowDialog(), null);
     }
 }
 protected void readAndParseVersionXml(string xml)
 {
     _checker = new DidWeReleaseYet(() => { return xml; });
 }