private void B_Add_Click(object sender, EventArgs e) { var bAddForm = new BindAdd(); var result = bAddForm.ShowDialog(); if (result == DialogResult.OK) { if (!keysBound.Contains(bAddForm.returnedKey)) { keysBound.Add(bAddForm.returnedKey); } } RefreshKeys(); }
private void B_AddKey_Click(object sender, EventArgs e) { var bindAddForm = new BindEditor.BindAdd(); var result = bindAddForm.ShowDialog(); if (result == DialogResult.OK) { if (!this.keyBindsForAction.Contains(bindAddForm.returnedKey)) { this.keyBindsForAction.Add(bindAddForm.returnedKey); } } this.RefreshKeys(); }