void ctrl_Closed(object sender, EventArgs e)
        {
            this.IsEnabled = true;
            string EtatRdrl = "ControleFacturation";

            Galatee.Silverlight.Shared.FrmOptionEditon ctrs = sender as Galatee.Silverlight.Shared.FrmOptionEditon;
            if (ctrs.IsOptionChoisi)
            {
                if (ctrs.OptionSelect == SessionObject.EnvoiExecl)
                {
                    Utility.ActionExportFormatWithSplitingPrinting <ServicePrintings.CsComparaisonFacture, ServiceFacturation.CsComparaisonFacture>(lstDonnee, param, SessionObject.CheminImpression, EtatRdrl, "Facturation", true, "xlsx");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiWord)
                {
                    Utility.ActionExportFormatWithSplitingPrinting <ServicePrintings.CsComparaisonFacture, ServiceFacturation.CsComparaisonFacture>(lstDonnee, param, SessionObject.CheminImpression, EtatRdrl, "Facturation", true, "doc");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiPdf ||
                         ctrs.OptionSelect == SessionObject.EnvoiPrinter)
                {
                    Utility.ActionExportFormatWithSplitingPrinting <ServicePrintings.CsComparaisonFacture, ServiceFacturation.CsComparaisonFacture>(lstDonnee, param, SessionObject.CheminImpression, EtatRdrl, "Facturation", true, "pdf");
                }
            }
        }
        void ctrl_Closed(object sender, EventArgs e)
        {
            this.IsEnabled = true;
            Galatee.Silverlight.Shared.FrmOptionEditon ctrs = sender as Galatee.Silverlight.Shared.FrmOptionEditon;
            if (ctrs.IsOptionChoisi)
            {
                if (ctrs.OptionSelect == SessionObject.EnvoiPrinter)
                {
                    Utility.ActionDirectOrientation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, SessionObject.CheminImpression, "CasFactures", "Report", true);
                }
                else if (ctrs.OptionSelect == SessionObject.EnvoiExecl)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, "CasFactures", "Report", true, "xlsx");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiWord)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, "CasFactures", "Report", true, "doc");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiPdf)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, "CasFactures", "Report", true, "pdf");
                }
            }
        }
        void ctrl_Closed(object sender, EventArgs e)
        {
            this.IsEnabled = true;
            string EtatRdrl = "";

            Galatee.Silverlight.Shared.FrmOptionEditon ctrs = sender as Galatee.Silverlight.Shared.FrmOptionEditon;
            if (ctrs.IsOptionChoisi)
            {
                if (leEtatExecuter == SessionObject.AbonneNonConstituer)
                {
                    EtatRdrl = "AbonneNonConstituer";
                }
                if (leEtatExecuter == SessionObject.AbonneNonSaisie)
                {
                    EtatRdrl = "AbonneNonSaisi";
                }
                if (leEtatExecuter == SessionObject.AbonneSaisieNonFact)
                {
                    EtatRdrl = "AbonneNonCalcules";
                }
                if (leEtatExecuter == SessionObject.AbonneFactureNonMaj)
                {
                    EtatRdrl = "AbonneNonMaj";
                }

                if (ctrs.OptionSelect == SessionObject.EnvoiPrinter)
                {
                    Utility.ActionDirectOrientation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, SessionObject.CheminImpression, EtatRdrl, "Report", true);
                }
                else if (ctrs.OptionSelect == SessionObject.EnvoiExecl)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, EtatRdrl, "Report", true, "xlsx");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiWord)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, EtatRdrl, "Report", true, "doc");
                }

                else if (ctrs.OptionSelect == SessionObject.EnvoiPdf)
                {
                    Utility.ActionExportation <ServicePrintings.CsEvenement, ServiceFacturation.CsEvenement>(lstDonnee, param, string.Empty, SessionObject.CheminImpression, EtatRdrl, "Report", true, "pdf");
                }
            }
        }