Exemplo n.º 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;
 }
Exemplo n.º 2
0
 private void cboMonitors_SelectedIndexChanged(object sender, EventArgs e)
 {
     _currentMonitor = _monitorCollection[cboMonitors.SelectedIndex];
     RefreshSliders(_currentMonitor);
 }
Exemplo n.º 3
0
 private void cboMonitors_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     _currentMonitor = _monitorCollection[cboMonitors.SelectedIndex];
     RedrawMonitorControls();
 }