Exemple #1
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         papawindow.saveColor();
     }
     else
     {
         if (e.Key == Key.Escape)
         {
             papawindow.Close();
         }
     }
 }
Exemple #2
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     window.Close();
 }