Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
        public KeyEditForm(KeymapKey key)
        {
            this.key = key;

            InitializeComponent();
        }
Beispiel #3
0
 protected void OpenKeyEditor(KeymapKey key)
 {
     new KeyEditForm(key).ShowDialog();
 }