private async void History_Click(object sender, RoutedEventArgs e) { RecordEntryBurial record = (RecordEntryBurial)EntriesHolder.SelectedItem; if (record == null) { MsgNoItemSelected(); } else { var metroWindow = (Application.Current.MainWindow as MetroWindow); await metroWindow.ShowChildWindowAsync(new ViewHistoryWindow(record.RecordID)); } }
private async void Print_Click(object sender, RoutedEventArgs e) { if (EntriesHolder.SelectedItems.Count == 1) { RecordEntryBurial record = (RecordEntryBurial)EntriesHolder.SelectedItem; if (record == null) { MsgNoItemSelected(); } else { var metroWindow = (Application.Current.MainWindow as MetroWindow); await metroWindow.ShowChildWindowAsync(new PrintBurialRecordEntryWindow(record.RecordID)); } } else { var metroWindow = (Application.Current.MainWindow as MetroWindow); await metroWindow.ShowChildWindowAsync(new ConfirmBatchPrintWindow(EntriesHolder.SelectedItems, "Burial")); } }