void LgLcdTestForm_HandleCreated(object sender, EventArgs e) { LogitechKeyboardManager.Init(this.Handle, LogitechKeyboardType.G19); var kb = LogitechKeyboardManager.GetKeyboards(LogitechKeyboardType.G19); kb.First().BackLightColor = Color.HotPink; }
private void cmbKeyboards_SelectedIndexChanged(object sender, EventArgs e) { LogitechKeyboardType selectedKeyboard; switch (cmbKeyboards.SelectedIndex) { case 0: // G19 // selectedKeyboard = LogitechKeyboardType.G19; break; case 1: // G510 // default: selectedKeyboard = LogitechKeyboardType.G510; break; } keyboards = LogitechKeyboardManager.GetKeyboards(selectedKeyboard); lblKeyboardCount.Text = keyboards.Count.ToString(); btnSearch.Enabled = keyboards.Count > 0; }
private void Form1_Load(object sender, EventArgs e) { LogitechKeyboardManager.Init(Handle, LogitechKeyboardType.G510, LogitechKeyboardType.G19); }