private async void History_Click(object sender, RoutedEventArgs e)
        {
            RecordEntryConfirmation record = (RecordEntryConfirmation)EntriesHolder.SelectedItem;

            if (record == null)
            {
                MsgNoItemSelected();
            }
            else
            {
                var metroWindow = (Application.Current.MainWindow as MetroWindow);
                await metroWindow.ShowChildWindowAsync(new ViewHistoryWindow(record.RecordID));
            }
        }
 private async void Edit_Click(object sender, RoutedEventArgs e)
 {
                 #pragma warning disable 0219
     string path = @"\archive.db";
                 #pragma warning restore 0219
     RecordEntryConfirmation record = (RecordEntryConfirmation)EntriesHolder.SelectedItem;
     if (record == null)
     {
         MsgNoItemSelected();
     }
     else
     {
         var metroWindow = (Application.Current.MainWindow as MetroWindow);
         await metroWindow.ShowChildWindowAsync(new EditConfirmationRecordEntryWindow(record.RecordID));
     }
 }
        private async void Edit_Click(object sender, RoutedEventArgs e)
        {
            string path = @"\archive.db";
            RecordEntryConfirmation record = (RecordEntryConfirmation)EntriesHolder.SelectedItem;

            if (record == null)
            {
                MsgNoItemSelected();
            }
            else if (pmsutil.IsArchived(record.RecordID) == true && pmsutil.CheckArchiveDrive(path) == "dc")
            {
                MsgArchiveNotConnected();
            }
            else
            {
                var metroWindow = (Application.Current.MainWindow as MetroWindow);
                await metroWindow.ShowChildWindowAsync(new EditConfirmationRecordEntryWindow(record.RecordID));
            }
        }
        private async void Print_Click(object sender, RoutedEventArgs e)
        {
            if (EntriesHolder.SelectedItems.Count == 1)
            {
                RecordEntryConfirmation record = (RecordEntryConfirmation)EntriesHolder.SelectedItem;

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