void EditFile_Click(object sender, RoutedEventArgs e) { this.GetParent <Window>().Close(); HotKeysMapping.Edit(); }