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; } }
public HotkeyManager(Dispatcher dispatcher) { mDispatcher = dispatcher; biosIface = new Controls.SamsungBIOSInterface(); hkListener = new HotkeyListener(biosIface.BIOSModelName); hkListener.SendUnknownKeyEvents = true; hkListener.HotkeyEvent += HkListener_HotkeyEvent; }
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; }
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; } }