예제 #1
0
파일: MainForm.cs 프로젝트: yumatchlab/moma
        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));
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: robertpi/moma
        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));
        }