Exemple #1
0
 private void RefreshSliders(Monitor m)
 {
     barBrightness.Visible = m.Brightness.Supported;
     barBrightness.Minimum = (int) m.Brightness.Min;
     barBrightness.Maximum = (int) m.Brightness.Max;
     barBrightness.Value = (int) m.Brightness.Current;
     
     barContrast.Visible = m.Contrast.Supported;
     barContrast.Minimum = (int) m.Contrast.Min;
     barContrast.Maximum = (int) m.Contrast.Max;
     barContrast.Value = (int) m.Contrast.Current;
 }
Exemple #2
0
 private void cboMonitors_SelectedIndexChanged(object sender, EventArgs e)
 {
     _currentMonitor = _monitorCollection[cboMonitors.SelectedIndex];
     RefreshSliders(_currentMonitor);
 }
 private void cboMonitors_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     _currentMonitor = _monitorCollection[cboMonitors.SelectedIndex];
     RedrawMonitorControls();
 }