コード例 #1
0
        public BIOSTinkerWindow(Controls.SamsungBIOSInterface biosInterface)
        {
            InitializeComponent();

            this.biosInterface = biosInterface;

            byteBoxen = new TextBox[] { byte0, byte1, byte2, byte3 };

            for (int i = 0; i < byteBoxen.Length; i++)
            {
                byteBoxen[i].Text = "0";
            }

            string modelName = biosInterface.BIOSModelName;

            if (modelName != null)
            {
                logTextBox.Text += "Detected laptop model: " + modelName + "\r\n";
            }
            else
            {
                logTextBox.Text += "Failed to retrieve laptop model!";
                return;
            }
        }
コード例 #2
0
 public HotkeyManager(Dispatcher dispatcher)
 {
     mDispatcher = dispatcher;
     biosIface   = new Controls.SamsungBIOSInterface();
     hkListener  = new HotkeyListener(biosIface.BIOSModelName);
     hkListener.SendUnknownKeyEvents = true;
     hkListener.HotkeyEvent         += HkListener_HotkeyEvent;
 }
コード例 #3
0
 public HotkeyManager(Dispatcher dispatcher)
 {
     mDispatcher = dispatcher;
     biosIface = new Controls.SamsungBIOSInterface();
     hkListener = new HotkeyListener(biosIface.BIOSModelName);
     hkListener.SendUnknownKeyEvents = true;
     hkListener.HotkeyEvent += HkListener_HotkeyEvent;
 }
コード例 #4
0
        public SettingsWindow(Controls.SamsungBIOSInterface biosInterface)
        {
            isInitializing = true;
            InitializeComponent();
            this.biosInterface = biosInterface;

            systemModelLabel.Content = biosInterface.BIOSModelName;
            chkBatteryLifeExtenderEnabled.IsChecked = biosInterface.GetBLEEnabled();
            chkUsbChargingEnabled.IsChecked         = biosInterface.GetUSBChargingEnabled();

            isInitializing = false;
        }
コード例 #5
0
        public SettingsWindow(Controls.SamsungBIOSInterface biosInterface)
        {
            isInitializing = true;
            InitializeComponent();
            this.biosInterface = biosInterface;

            systemModelLabel.Content = biosInterface.BIOSModelName;
            chkBatteryLifeExtenderEnabled.IsChecked = biosInterface.GetBLEEnabled();
            chkUsbChargingEnabled.IsChecked = biosInterface.GetUSBChargingEnabled();

            isInitializing = false;
        }
コード例 #6
0
        public BIOSTinkerWindow(Controls.SamsungBIOSInterface biosInterface)
        {
            InitializeComponent();

            this.biosInterface = biosInterface;

            byteBoxen = new TextBox[] { byte0, byte1, byte2, byte3 };

            for(int i = 0; i < byteBoxen.Length; i++)
            {
                byteBoxen[i].Text = "0";
            }

            string modelName = biosInterface.BIOSModelName;
            if (modelName != null)
            {
                logTextBox.Text += "Detected laptop model: " + modelName + "\r\n";
            }
            else
            {
                logTextBox.Text += "Failed to retrieve laptop model!";
                return;
            }
        }