Example #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()));
        }