Exemple #1
0
        private void addColor()
        {
            AddNewColor aNC = new AddNewColor();

            aNC.ShowDialog();
            refreshColorGrid();
        }
Exemple #2
0
 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();
     }
 }