private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                String title;
                ArrayList hideFields = new ArrayList();
                ArrayList currenyField = new ArrayList();
                currenyField.Add("TotalValue");
                hideFields.Add(Lot.Fields.lotID.ToString());
                hideFields.Add(Site.Fields.siteID.ToString());
                FlowDocument doc;
                if(cmboType.SelectedItem.Equals(builderItem))
                {
                    title = "Site Material Costs";
                    doc = itemRecords.GetFlowDocument(title, hideFields, SiteMaterialCostsBinding.GetDisplayTextMap(), currenyField);
                }
                else
                {
                    title = "Lot Material Costs";
                    doc = itemRecords.GetFlowDocument(title, hideFields, LotMaterialCostsBinding.GetDisplayTextMap(), currenyField);
                }

                DocumentPreviewer preview = new DocumentPreviewer(doc, title);
                preview.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Nothing to print", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                String title = "Lot Services Billed Report";
                ArrayList hideFields = new ArrayList();
                ArrayList currenyField = new ArrayList();
                hideFields.Add("lotID");
                currenyField.Add("Amount");
                FlowDocument doc = itemRecords.GetFlowDocument(title, hideFields, LotServicesBilledBinding.GetDisplayTextMap(), currenyField);

                DocumentPreviewer preview = new DocumentPreviewer(doc, title);
                preview.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Nothing to print", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                String title = "City Report";
                ArrayList hideFields = new ArrayList();
                ArrayList currenyField = new ArrayList();
                hideFields.Add("lotID");
                hideFields.Add("assocID");
                hideFields.Add("PlanInfo");
                hideFields.Add("LotSize");
                hideFields.Add("ServiceSize");
                hideFields.Add("Completed");
                hideFields.Add("Notes");
                hideFields.Add("lastModified");
                hideFields.Add("modifiedBy");

                FlowDocument doc = itemRecords.GetFlowDocument(title, hideFields, Time_SheetBinding.GetDisplayTextMap(), currenyField);

                DocumentPreviewer preview = new DocumentPreviewer(doc, title);
                preview.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Nothing to print", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }