private void CheckUpdateLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FileDefinition fd = DefinitionHandler.CheckLatestVersionFromInternet(); if (MonoVersionCombo.Items.Count == 0 || fd.Date > (MonoVersionCombo.Items[0] as FileDefinition).Date) { DefinitionDownloader dd = new DefinitionDownloader(); dd.LoadDefinitionFile(fd); if (dd.ShowDialog() == DialogResult.OK) { SetupMonoVersion(); } } else { MessageBox.Show(string.Format("You have the most recent version: {0}", (MonoVersionCombo.Items[0] as FileDefinition).Version)); } }
private void CheckUpdateLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FileDefinition fd = DefinitionHandler.CheckLatestVersionFromInternet (); if (MonoVersionCombo.Items.Count == 0 || fd.Date > (MonoVersionCombo.Items[0] as FileDefinition).Date) { DefinitionDownloader dd = new DefinitionDownloader (); dd.LoadDefinitionFile (fd); if (dd.ShowDialog () == DialogResult.OK) SetupMonoVersion (); } else MessageBox.Show (string.Format ("You have the most recent version: {0}", (MonoVersionCombo.Items[0] as FileDefinition).Version)); }