private void RenderKeys() { for (int row = 0; row < keysPanel.RowCount; row++) { for (int col = 0; col < keysPanel.ColumnCount; col++) { KeymapKey key = new KeymapKey(); allKeys.Add(key); key.KeySelected += new EventHandler(keySelected); key.KeyDeselected += new EventHandler(keyDeselected); keysPanel.Controls.Add(key, col, row); } } }
public KeyEditForm(KeymapKey key) { this.key = key; InitializeComponent(); }
protected void OpenKeyEditor(KeymapKey key) { new KeyEditForm(key).ShowDialog(); }