private void MaintainSomeSettingsClick(object sender, RoutedEventArgs e) { Preferences f = new Preferences(); f.ShowDialog(); }