Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 protected virtual void OnContrastChanged(ScreenPageEventArgs e)
 {
     ContrastChanged?.Invoke(this, e);
 }
Esempio n. 3
0
 protected virtual void OnBrighnessDriveChanged(ScreenPageEventArgs e)
 {
     BrightnessDriveChanged?.Invoke(this, e);
 }