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