示例#1
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            UpdateBackgroundWorkerActive(true);

            ModifyFirmwareWorker changeLogoWorker = new ModifyFirmwareWorker(
                _rtd,
                chkChangeLogo.Checked ? txtLogoFileName.Text : null,
                chkChangeLogoBackgroundColor.Checked ? Color.FromArgb((int)numericLogoBackgroundRed.Value, (int)numericLogoBackgroundGreen.Value, (int)numericLogoBackgroundBlue.Value) : Color.Empty,
                chkChangeLogoForegroundColor.Checked ? Color.FromArgb((int)numericLogoForegroundRed.Value, (int)numericLogoForegroundGreen.Value, (int)numericLogoForegroundBlue.Value) : Color.Empty,
                chkChangeBackgroundColor.Checked ? Color.FromArgb((int)numericBackgroundRed.Value, (int)numericBackgroundGreen.Value, (int)numericBackgroundBlue.Value) : Color.Empty,
                chkRemoveHdmi.Checked,
                chkChangeHdmi.Checked ? txtChangeHdmi.Text : null);

            changeLogoWorker.WorkerReportStatus           += AppendConsoleText;
            changeLogoWorker.ModifyFirmwareWorkerFinished += ModifyFirmwareWorkerFinished;
            changeLogoWorker.Start();
        }
示例#2
0
        private void btnModify_Click()
        {
            UpdateBackgroundWorkerActive(true);

            ModifyFirmwareWorker changeLogoWorker = new ModifyFirmwareWorker(
                _rtd,
                modificationSettings.LogoFileName,
                modificationSettings.LogoBackgroundColor,
                modificationSettings.LogoForegroundColor,
                modificationSettings.BackgroundColor,
                modificationSettings.RemoveHdmiPopup,
                modificationSettings.HdmiReplacementText,
                modificationSettings.RemoveNoSignalPopup);

            changeLogoWorker.WorkerReportStatus           += AppendConsoleText;
            changeLogoWorker.ModifyFirmwareWorkerFinished += ModifyFirmwareWorkerFinished;
            changeLogoWorker.Start();
        }