private void tagPreferencesShowButton_Click(object sender, RoutedEventArgs e) { if (tp == null) { tp = new TagPreferences(chdb); } tp.Show(); }