Ejemplo n.º 1
0
        private void btnFlash_Click(object sender, EventArgs e)
        {
            BiosRowData bios = ddlBioses.SelectedItem as BiosRowData;

            if (bios == null)
            {
                return;
            }

            Cursor = Cursors.WaitCursor;
            _toolManager.Flash(_motherboard, bios, _tool, cbExecuteScript.Checked);
            Cursor = Cursors.Default;
        }
Ejemplo n.º 2
0
        private async void btnFlash_Click(object sender, EventArgs e)
        {
            BiosRowData bios = ddlBioses.SelectedItem as BiosRowData;

            if (bios == null)
            {
                return;
            }

            Cursor = Cursors.WaitCursor;

            if (!await _biosManager.DownloadBiosIfMissingAsync(bios))
            {
                Cursor = Cursors.Default;
                return;
            }

            _toolManager.Flash(_motherboard, bios, _tool, cbExecuteScript.Checked);

            Cursor = Cursors.Default;
        }