private void ButtonPrint_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_Copies > 0)
            {
                if (this.ComboBoxForm.SelectedItem != null)
                {
                    if (this.ComboBoxPrinter.SelectedItem != null)
                    {
                        System.Printing.PrintServer printServer = new System.Printing.LocalPrintServer();
                        System.Printing.PrintQueue  printQueue  = printServer.GetPrintQueue(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.RequisitionPrinter);

                        ComboBoxItem comboBoxItem = (ComboBoxItem)this.ComboBoxForm.SelectedItem;
                        switch (comboBoxItem.Content.ToString())
                        {
                        case "Standard":
                            StandardRequisition standardRequisition = new StandardRequisition(this.m_ClientId);
                            standardRequisition.Print(this.m_Copies, printQueue);
                            break;

                        case "Cytology":
                            CytologyRequisition cytologyRequisition = new CytologyRequisition(this.m_ClientId);
                            cytologyRequisition.Print(this.m_Copies, printQueue);
                            break;

                        case "Oncology":
                            OncologyRequisition oncologyRequisition = new OncologyRequisition(this.m_ClientId);
                            oncologyRequisition.Print(this.m_Copies, printQueue);
                            break;

                        case "IHC/Molecular":
                            IHCMolecularRequisition ihcMolecularRequisition = new IHCMolecularRequisition(this.m_ClientId);
                            ihcMolecularRequisition.Print(this.m_Copies, printQueue);
                            break;
                        }
                        Close();
                    }
                    else
                    {
                        MessageBox.Show("You must select a printer.");
                    }
                }
                else
                {
                    MessageBox.Show("You must select a form type.");
                }
            }
        }
        private void ButtonPrint_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_Copies > 0)
            {
                if (this.ComboBoxForm.SelectedItem != null)
                {
                    if (this.ComboBoxPrinter.SelectedItem != null)
                    {
                        System.Printing.PrintServer printServer = new System.Printing.LocalPrintServer();
                        System.Printing.PrintQueue printQueue = printServer.GetPrintQueue(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.RequisitionPrinter);

                        ComboBoxItem comboBoxItem = (ComboBoxItem)this.ComboBoxForm.SelectedItem;
                        switch (comboBoxItem.Content.ToString())
                        {
                            case "Standard":
                                StandardRequisition standardRequisition = new StandardRequisition(this.m_ClientId);
                                standardRequisition.Print(this.m_Copies, printQueue);
                                break;
                            case "Oncology":
                                OncologyRequisition oncologyRequisition = new OncologyRequisition(this.m_ClientId);
                                oncologyRequisition.Print(this.m_Copies, printQueue);
                                break;
                            case "IHC/Molecular":
                                IHCMolecularRequisition ihcMolecularRequisition = new IHCMolecularRequisition(this.m_ClientId);
                                ihcMolecularRequisition.Print(this.m_Copies, printQueue);
                                break;
                        }
                        Close();
                    }
                    else
                    {
                        MessageBox.Show("You must select a printer.");
                    }
                }
                else
                {
                    MessageBox.Show("You must select a form type.");
                }
            }
        }