示例#1
0
        private void AppClosing(object sender, FormClosingEventArgs e)
        {
            timeoutBox.SelectedIndex = timeoutBox.FindString(m_Manager.PreviousScreenTime.ToString());

            BatteryManager battery = new BatteryManager();

            battery.SetDisplayOff(Int32.Parse(m_Manager.PreviousScreenTime.ToString()));
        }
示例#2
0
 private void AppClosing(object sender, FormClosingEventArgs e)
 {
     _manager.SetDisplayOff(Int32.Parse(_manager.PreviousScreenTime.ToString()));
 }
示例#3
0
 private void timeoutBox_ValueChanged(object sender, EventArgs e)
 {
     timeoutLabel.Text   = "Время отключения дисплея " + timeoutBox.SelectedItem.ToString() + " минут.";
     timeoutSeconds.Text = (Int32.Parse(timeoutBox.SelectedItem.ToString()) * 60).ToString();
     _manager.SetDisplayOff(Int32.Parse(timeoutBox.SelectedItem.ToString()));
 }
示例#4
0
 private void TimeoutBoxValueChanged(object sender, EventArgs e)
 {
     timeoutLabel.Text = "Display time: " + timeoutBox.SelectedItem.ToString() + " minutes";
     m_Manager.SetDisplayOff(Int32.Parse(timeoutBox.SelectedItem.ToString()));
 }