private void exporteLesPlanetesDeLaGalaxieDansLaPlageSpecifiee(int galaxie, int systemeDebut, int systemeFin) { Collection <Planete> cp = new Collection <Planete>(); for (int s = systemeDebut; s <= systemeFin; ++s) { if (backgroundWorkerExportation.CancellationPending) { return; } if (FormPrincipale.LUniversConnu[galaxie].SystemeNonNul(s)) { for (int p = 1; p <= 15; ++p) { Planete pl = FormPrincipale.LUniversConnu[galaxie, s, p] as Planete; if (pl != null) { if (pl.Nom != "Planete inconnue" && pl.Nom != "Planète inconnue" ) { cp.Add(pl); } } } } } if (backgroundWorkerExportation.CancellationPending) { return; } resultat += fp.serveur.ExporterLesPlanetes(cp); }
public FormProgressionExport(FormPrincipale formPrincipale) { fp = formPrincipale; fp.AnalysePressePapier = false; InitializeComponent(); resultat = new InterfaceServeur.ResultatDExportationDePlanetes(); backgroundWorkerExportation.RunWorkerAsync(); }