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.

DBSelectControl.cs

Description du code

DBSelectControl.cs est un fichier du projet BiblioBrol.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/src/.

Projet BiblioBrol :

Gestion de media en CSharp.

Pour plus d'infos, vous pouvez consulter la brève analyse.

Code source ou contenu du fichier

  1. using System;
  2. using System.Windows.Forms;
  3. using be.gaudry.bibliobrol.config;
  4. using be.gaudry.bibliobrol.model.enums;
  5. using be.gaudry.bibliobrol.view.controls.dao;
  6. using be.gaudry.model.enums;
  7. using System.Collections.Generic;
  8.  
  9. namespace be.gaudry.bibliobrol.view.controls
  10. {
  11. /// <summary>
  12. /// Used to select the persistant system, and configure it.
  13. /// </summary>
  14. public partial class DBSelectControl : UserControl
  15. {
  16. private IDBControl dbControl;
  17.  
  18. public DBSelectControl()
  19. {
  20. InitializeComponent();
  21. reset();
  22. }
  23.  
  24. public void reset()
  25. {
  26. dbTypeCB.DataSource = EnumHelper.ToList(typeof(PERSISTENCE_TYPE));
  27. dbTypeCB.DisplayMember = "Value";
  28. dbTypeCB.ValueMember = "Key";
  29. dbTypeCB.SelectedItem = EnumHelper.getKeyValuePair(Config.PersistentType);
  30.  
  31. showSelectedDBPanel();
  32. //dbControl.reset();
  33. }
  34.  
  35. private void showSelectedDBPanel()
  36. {
  37. if (dbControl != null) this.mainTLP.Controls.Remove(((Control)dbControl));
  38. if (dbTypeCB.Items.Count > 0 && dbTypeCB.SelectedIndex > -1)
  39. {
  40. PERSISTENCE_TYPE persistenceType = (PERSISTENCE_TYPE)EnumHelper.getEnum(dbTypeCB.SelectedItem);
  41. switch (persistenceType)
  42. {
  43. case PERSISTENCE_TYPE.SQLExpress:
  44. dbControl = new SQLEControl();
  45. //((SQLEControl)dbControl).AutoScroll = true;
  46. //((Control)dbControl).Name = "sqleCtrl";
  47. break;
  48. case PERSISTENCE_TYPE.Access:
  49. dbControl = new AccessControl();
  50. //((AccessControl)dbControl).AutoScroll = true;
  51. //((Control)dbControl).Name = "accessCtrl";
  52. break;
  53. case PERSISTENCE_TYPE.MySQL:
  54. dbControl = new MySQLControl();
  55. break;
  56. }
  57. /*
  58.   ((Control)dbControl).Location = new System.Drawing.Point(3, 43);
  59.   ((Control)dbControl).Size = new System.Drawing.Size(394, 234);
  60.   ((Control)dbControl).TabIndex = 1;
  61.   ((Control)dbControl).Margin = new System.Windows.Forms.Padding(10);
  62.   ((Control)dbControl).Padding = new System.Windows.Forms.Padding(2);
  63.   */
  64. ((Control)dbControl).Dock = DockStyle.Fill;
  65. this.mainTLP.Controls.Add(((Control)dbControl));
  66. }
  67. }
  68.  
  69. private void dbTypeCB_SelectedIndexChanged(object sender, EventArgs e)
  70. {
  71. if (dbTypeCB.Items.Count > 0) showSelectedDBPanel();
  72. }
  73.  
  74. #region context menu
  75. private void executeBatch_Click(object sender, EventArgs e)
  76. {
  77. model.ModelAdapter.executeBrolBatch(true);
  78. }
  79.  
  80. private void save_Click(object sender, EventArgs e)
  81. {
  82. dbControl.save();
  83. }
  84.  
  85. private void reloadCTsMi_Click(object sender, EventArgs e)
  86. {
  87. reset();
  88. }
  89. #endregion
  90. }
  91. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/view/controls/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1715934387 17/05/2024 10:26:27
| _dao0 octets1541007199 31/10/2018 18:33:19
| _toolBars0 octets1541007200 31/10/2018 18:33:20
| _webInfo0 octets1541007201 31/10/2018 18:33:21
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/view/controls/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csPersonSelectControl.cs4.89 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csCreateStructureControl.cs7.49 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csDBSelectControl.cs3.23 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csPersonInfoControl.Designer.cs13.13 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxDirControl.resx5.68 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .resx|.resxBrolInfoControl.resx6.06 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csBrolEditControl.cs25.36 Ko31/10/2018 18:32:55-refusé-
Afficher le fichier .cs|.csPersonEditControl.cs15.67 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csSearchControl.cs18.88 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxDBSelectControl.resx5.88 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csBrolInfoControl.Designer.cs22.81 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csInfoControl.cs2.04 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csDirControl.Designer.cs5.83 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csSelectConsoleVerboseControl.cs5.49 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csPersonSelectedEventArgs.cs779 octets31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxSelectConsoleVerboseControl.resx5.68 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csTodoControl.cs13.73 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .cs|.csSelectConsoleVerboseControl.Designer.cs45.29 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csBrolEditControl.Designer.cs40.09 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csDBSelectControl.Designer.cs6.71 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csPersonEditControl.Designer.cs27.54 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxPersonInfoControl.resx6.42 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csCreateStructureControl.Designer.cs5 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csDirPathModifiedEventArgs.cs871 octets31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csInfoControl.Designer.cs3.18 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csBrolInfoControl.cs5.14 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .resx|.resxBrolEditControl.resx6.04 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csPersonInfoControl.cs2.22 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxInfoControl.resx5.68 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csDirControl.cs4.51 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .resx|.resxCreateStructureControl.resx6.44 Ko31/10/2018 18:32:56-refusé-
Afficher le fichier .cs|.csSerieEditControl.cs2.58 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .resx|.resxSerieEditControl.resx7.45 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .resx|.resxTodoControl.resx6.76 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .cs|.csTodoControl.Designer.cs28.27 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .resx|.resxSearchControl.resx6.43 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csPersonSelectControl.Designer.cs14.74 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csSearchControl.Designer.cs25.75 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .resx|.resxPersonEditControl.resx7.96 Ko31/10/2018 18:32:57-refusé-
Afficher le fichier .cs|.csSerieEditControl.Designer.cs6.65 Ko31/10/2018 18:32:58-refusé-
Afficher le fichier .resx|.resxPersonSelectControl.resx5.68 Ko31/10/2018 18:32:57-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-bibliobrol-source-rf-view/controls/DBSelectControl.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.