コード例 #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);
                }
            }
        }
コード例 #2
0
        public KeyEditForm(KeymapKey key)
        {
            this.key = key;

            InitializeComponent();
        }
コード例 #3
0
 protected void OpenKeyEditor(KeymapKey key)
 {
     new KeyEditForm(key).ShowDialog();
 }