Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.

AbstractDgv.cs

Description du code

AbstractDgv.cs est un fichier du projet BrolDev.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/broldev/src/.

Projet BrolDev : Librairie de composants réutilisables pour les applications BrolDev en CSharp.

Code source ou contenu du fichier

  1. using System.Collections.Generic;
  2. using System.Windows.Forms;
  3. using be.gaudry.model.enums;
  4. using be.gaudry.view.dialogs;
  5.  
  6. namespace be.gaudry.view.utils.dgvFactory
  7. {
  8. public abstract class AbstractDgv : IDgv
  9. {
  10. #region declarations and initializations
  11. private DGVLayoutOptionsDialog dlg = new DGVLayoutOptionsDialog();
  12. protected internal PAGE_COUNTERFORMAT PageCounterFormat = PAGE_COUNTERFORMAT.pageXdeX;
  13. protected internal PAGE_ORIENTATION pageOrientation = PAGE_ORIENTATION.portrait;
  14. protected internal bool DisplayDate = true;
  15. protected internal TEXT_POSITION textPlacement = TEXT_POSITION.Header;
  16. protected internal DataGridView dgv; // Holds DataGridView Object to print its contents
  17. protected internal List<DataGridViewColumn> SelectedColumns = new List<DataGridViewColumn>(); // The Columns Selected by user to print.
  18. //private List<string> AvailableColumns = new List<string>(); // All Columns avaiable in DataGrid
  19. protected internal string PrintTitle;
  20. private string dgvLayoutOptionsDialogTitle;
  21. protected internal Form dialogOwner;
  22. protected internal bool PrintAllRows = true; // True = print all rows, False = print selected rows
  23. protected internal bool FitToPageWidth = true; // True = Fits selected columns to page width , False = Print columns as showed
  24. protected internal string authorName = "Steph";//todo : get info from dlg
  25. #endregion
  26.  
  27. #region getters and setters
  28. public void setDialogOwner(Form form)
  29. {
  30. this.dialogOwner = form;
  31. }
  32. public string DGVLayoutOptionsDialogTitle
  33. {
  34. get { return dgvLayoutOptionsDialogTitle; }
  35. set { dgvLayoutOptionsDialogTitle = value; }
  36. }
  37. public DGVLayoutOptionsDialog LayoutOptionsDialog
  38. {
  39. get { return dlg; }
  40. }
  41. #endregion
  42.  
  43. #region protected methods
  44. protected internal bool setLayoutOptions(string outputTitle)
  45. {
  46. /*AvailableColumns.Clear();
  47.   foreach (DataGridViewColumn c in dgv.Columns)
  48.   {
  49.   if (!c.Visible || c.Name.Equals("fillerCol")) continue;
  50.   AvailableColumns.Add(c.HeaderText);
  51.   }
  52.   dlg.setSelectedColumns(AvailableColumns);
  53.   dlg.layoutControl.setTitle(outputTitle);
  54.   DialogResult dr;
  55.   if (dialogOwner != null)
  56.   {
  57.   dr = dlg.ShowDialog(dialogOwner);
  58.   }
  59.   else
  60.   {
  61.   dr = dlg.ShowDialog();
  62.   }
  63.   if (dr != DialogResult.OK) return false;
  64.  
  65.   PrintTitle = dlg.layoutControl.getTitle();
  66.   PrintAllRows = dlg.layoutControl.getPrintAllRows();
  67.   FitToPageWidth = dlg.layoutControl.getFitToPageWidth();
  68.   SelectedColumns = dlg.layoutControl.getSelectedColumns();
  69.   PageCounterFormat = dlg.layoutControl.getPageCounterFormat();
  70.   DisplayDate = dlg.layoutControl.getDisplayDate();
  71.   pageOrientation = dlg.layoutControl.getPageOrientation();
  72.   */
  73.  
  74. return true;
  75. }
  76. #endregion
  77.  
  78. #region IDgv Membres
  79.  
  80. public abstract void print(DataGridView dgv);
  81. //public abstract void print(DataGridView dgv, string outputTitle, Form ownerForm);
  82.  
  83. #endregion
  84. }
  85. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/utils/dgvFactory/ 
IcôneNomTailleModification
Pas de sous-répertoires.
IcôneNomTailleModification
| _ Répertoire parent0 octets1720140511 05/07/2024 02:48:31
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/utils/dgvFactory/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csHtmlDgv.cs5.03 Ko31/10/2018 18:33:22-refusé-
Afficher le fichier .cs|.csExcelDgv.cs18.77 Ko31/10/2018 18:33:22-refusé-
Afficher le fichier .cs|.csXMLDgv.cs3.02 Ko31/10/2018 18:33:23-refusé-
Afficher le fichier .cs|.csCSVDgv.cs5.02 Ko31/10/2018 18:33:22-refusé-
Afficher le fichier .cs|.csPrintDgv.cs18.02 Ko31/10/2018 18:33:23-refusé-
Afficher le fichier .cs|.csIDgv.cs271 octets31/10/2018 18:33:23-refusé-
Afficher le fichier .cs|.csTextDgv.cs4.02 Ko31/10/2018 18:33:23-refusé-
Afficher le fichier .cs|.csAbstractDgv.cs3.46 Ko31/10/2018 18:33:22-refusé-

Utilisation de l'explorateur de code

  • Navigation :
    • Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
    • Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
    • La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
    • Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
  • Affichage :
    • Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
  • Actions :
    • Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 16/10/2009 gemaakt, de laatste keer de 26/10/2018 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/cs-broldev-source-rf-view/utils/dgvFactory/AbstractDgv.cs.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.