private void btnCheckDevBuild_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Resources.ApplicationSettingsForm_btnCheckDevBuild_Click_DevBuilds_Warning, "ShareX",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
     {
         TaskHelpers.DownloadAppVeyorBuild();
     }
 }
 private void cbCheckPreReleaseUpdates_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Middle)
     {
         Cursor = Cursors.WaitCursor;
         TaskHelpers.DownloadAppVeyorBuild();
         Cursor = Cursors.Default;
     }
 }
Beispiel #3
0
 private void btnCheckDevBuild_Click(object sender, EventArgs e)
 {
     // TODO: Translate
     if (MessageBox.Show("Dev builds can be unstable and must be used for testing purposes only. Do you want to install it?", "ShareX",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
     {
         TaskHelpers.DownloadAppVeyorBuild();
     }
 }
        private async void btnCheckDevBuild_Click(object sender, EventArgs e)
        {
            btnCheckDevBuild.Enabled = false;

            if (MessageBox.Show(Resources.ApplicationSettingsForm_btnCheckDevBuild_Click_DevBuilds_Warning, "ShareX",
                                MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
            {
                await TaskHelpers.DownloadAppVeyorBuild();
            }

            if (!IsDisposed)
            {
                btnCheckDevBuild.Enabled = true;
            }
        }