private void Click_Context_RenameIndexCard(object sender, RoutedEventArgs e) { var cw = new IndexCardRename(this); cw.ShowInTaskbar = false; cw.Owner = Application.Current.MainWindow; cw.Show(); }
private void Click_Menu_RenameIndexCard(object sender, RoutedEventArgs e) { var cw = new IndexCardRename(IndexCards[SelectedIndexCard]); cw.ShowInTaskbar = false; cw.Owner = System.Windows.Application.Current.MainWindow; cw.Show(); }