Exemplo n.º 1
0
        //Actions
        private void linkLabelNewVersion_Click(object sender, EventArgs e)
        {
            buttonOK.Enabled = false;

            FormCheckUpdates FormWindow = new FormCheckUpdates("download");

            FormWindow.NewVersion = NewVersion;
            DialogResult t = FormWindow.ShowDialog();

            buttonOK.Enabled = true;
            if (t == DialogResult.OK)
            {
                linkLabelNewVersion.Text = String.Format("You are using latest version!\r\n(Repair)");
                linkLabelNewVersion.DisabledLinkColor = this.ForeColor;
            }
            else if (t == DialogResult.Abort)
            {
                linkLabelNewVersion.Text = String.Format("Something gone wrong. Please use links below for manual update.");
                linkLabelNewVersion.DisabledLinkColor = Color.Red;
            }

            linkLabelNewVersion.LinkBehavior     = LinkBehavior.NeverUnderline;
            linkLabelNewVersion.Links[0].Enabled = false;
        }
Exemplo n.º 2
0
        private void latestStableToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCheckUpdates FormWindow = new FormCheckUpdates("check");

            FormWindow.ShowDialog();
        }