No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

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 octets1719954688 02/07/2024 23:11:28
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.

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 16/10/2009, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/cs-broldev-source-rf-view/utils/dgvFactory/AbstractDgv.cs.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.