private void addColor() { AddNewColor aNC = new AddNewColor(); aNC.ShowDialog(); refreshColorGrid(); }
private void btn_AddNew_KeyDown(object sender, KeyEventArgs e) { if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.A) { AddNewColor aNC = new AddNewColor(); ButtonClicked.addNewColorButton = (sender as Button).Text; aNC.ShowDialog(); refreshColorGrid(); } }