private void SCREEN_BrightnessDriveChanged(object sender, ScreenPageEventArgs e) { if (!UCCom.IsOpen) { return; } try { UCCom.SendCommand(3, Constants.IVAD_SETTING_BRIGHTNESS_DRIVE, (byte)e.NewValue); } catch (UCComException ex) { MessageBox.Show(this, string.Format(CultureInfo.CurrentCulture, StringRes.StringRes.CantPerformChange, ex.Message), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } this.applyButton.Enabled = true; }
protected virtual void OnContrastChanged(ScreenPageEventArgs e) { ContrastChanged?.Invoke(this, e); }
protected virtual void OnBrighnessDriveChanged(ScreenPageEventArgs e) { BrightnessDriveChanged?.Invoke(this, e); }