예제 #1
0
 private void EscapeListener(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Escape)
     {
         HaClientContext.RemoveStateChangeListener(this);
         Close();
     }
 }
예제 #2
0
 private void CloseButton(object sender, RoutedEventArgs e)
 {
     HaClientContext.RemoveStateChangeListener(this);
     Close();
 }