Ejemplo n.º 1
0
        private async void History_Click(object sender, RoutedEventArgs e)
        {
            RecordEntryMatrimonial record = (RecordEntryMatrimonial)EntriesHolder.SelectedItem;

            if (record == null)
            {
                MsgNoItemSelected();
            }
            else
            {
                var metroWindow = (Application.Current.MainWindow as MetroWindow);
                await metroWindow.ShowChildWindowAsync(new ViewHistoryWindow(record.RecordID));
            }
        }
Ejemplo n.º 2
0
        private async void Print_Click(object sender, RoutedEventArgs e)
        {
            if (EntriesHolder.SelectedItems.Count == 1)
            {
                RecordEntryMatrimonial record = (RecordEntryMatrimonial)EntriesHolder.SelectedItem;

                if (record == null)
                {
                    MsgNoItemSelected();
                }
                else
                {
                    var metroWindow = (Application.Current.MainWindow as MetroWindow);
                    await metroWindow.ShowChildWindowAsync(new PrintMatrimonialRecordEntryWindow(record.RecordID));
                }
            }
            else
            {
                var metroWindow = (Application.Current.MainWindow as MetroWindow);
                await metroWindow.ShowChildWindowAsync(new ConfirmBatchPrintWindow(EntriesHolder.SelectedItems, "Matrimonial"));
            }
        }