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