BiblioBrolAboutBox.cs

Description du code

BiblioBrolAboutBox.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.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Windows.Forms;
  6. using System.Reflection;
  7. using System.Text;
  8. using be.gaudry.model.config;
  9.  
  10. namespace be.gaudry.bibliobrol.view
  11. {
  12. partial class BiblioBrolAboutBox : Form
  13. {
  14. public BiblioBrolAboutBox()
  15. {
  16. InitializeComponent();
  17.  
  18. // Initialize the AboutBox to display the product information from the assembly information.
  19. // Change assembly information settings for your application through either:
  20. // - Project->Properties->Application->Assembly Information
  21. // - AssemblyInfo.cs
  22. this.Text = String.Format("A propos de {0}", AssemblyTitle);
  23. this.labelProductName.Text = AssemblyProduct;
  24. this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
  25. this.labelCopyright.Text = AssemblyCopyright;
  26. this.labelCompanyName.Text = AssemblyCompany;
  27. this.textBoxDescription.Text = AssemblyDescription;
  28. this.textBoxPlugins.Text = Plugins;
  29. }
  30.  
  31. #region Assembly Attribute Accessors
  32.  
  33. public string AssemblyTitle
  34. {
  35. get
  36. {
  37. // Get all Title attributes on this assembly
  38. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
  39. // If there is at least one Title attribute
  40. if (attributes.Length > 0)
  41. {
  42. // Select the first one
  43. AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
  44. // If it is not an empty string, return it
  45. if (titleAttribute.Title != "")
  46. return titleAttribute.Title;
  47. }
  48. // If there was no Title attribute, or if the Title attribute was the empty string, return the .exe name
  49. return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
  50. }
  51. }
  52.  
  53. public string AssemblyVersion
  54. {
  55. get
  56. {
  57. return Assembly.GetExecutingAssembly().GetName().Version.ToString();
  58. }
  59. }
  60.  
  61. public string AssemblyDescription
  62. {
  63. get
  64. {
  65. // Get all Description attributes on this assembly
  66. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
  67. // If there aren't any Description attributes, return an empty string
  68. if (attributes.Length == 0)
  69. return "";
  70. // If there is a Description attribute, return its value
  71. return ((AssemblyDescriptionAttribute)attributes[0]).Description;
  72. }
  73. }
  74.  
  75. public string Plugins
  76. {
  77. get
  78. {
  79. StringBuilder str = new StringBuilder("Plugins :");
  80. if (PluginsManager.Count > 0)
  81. {
  82. foreach (Plugin plugin in PluginsManager.Plugins)
  83. {
  84. str.AppendFormat(
  85. "{0}{1} Version {2}",
  86. Environment.NewLine,
  87. plugin.Name,
  88. plugin.Version
  89. );
  90. }
  91. return str.ToString();
  92. }
  93. return "Aucun plugin installé.";
  94. }
  95. }
  96.  
  97. public string AssemblyProduct
  98. {
  99. get
  100. {
  101. // Get all Product attributes on this assembly
  102. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
  103. // If there aren't any Product attributes, return an empty string
  104. if (attributes.Length == 0)
  105. return "";
  106. // If there is a Product attribute, return its value
  107. return ((AssemblyProductAttribute)attributes[0]).Product;
  108. }
  109. }
  110.  
  111. public string AssemblyCopyright
  112. {
  113. get
  114. {
  115. // Get all Copyright attributes on this assembly
  116. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
  117. // If there aren't any Copyright attributes, return an empty string
  118. if (attributes.Length == 0)
  119. return "";
  120. // If there is a Copyright attribute, return its value
  121. return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
  122. }
  123. }
  124.  
  125. public string AssemblyCompany
  126. {
  127. get
  128. {
  129. // Get all Company attributes on this assembly
  130. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
  131. // If there aren't any Company attributes, return an empty string
  132. if (attributes.Length == 0)
  133. return "";
  134. // If there is a Company attribute, return its value
  135. return ((AssemblyCompanyAttribute)attributes[0]).Company;
  136. }
  137. }
  138. #endregion
  139. }
  140. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/view/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1716283618 21/05/2024 11:26:58
| _wizards0 octets1541007184 31/10/2018 18:33:04
| _utils0 octets1541007184 31/10/2018 18:33:04
| _controls0 octets1541007178 31/10/2018 18:32:58
| _dialogs0 octets1541007183 31/10/2018 18:33:03
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/view/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .resx|.resxMediabrolForm.resx32.55 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .resx|.resxAWSForm.resx188.27 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .resx|.resxMainForm.resx6.07 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .resx|.resxConsoleForm.resx256.48 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .cs|.csAWSForm.Designer.cs23.45 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csActorForm.cs9.09 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csBiblioBrolAboutBox.Designer.cs11.22 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csAWSForm.cs7.68 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csBorrowsForm.cs1.66 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csCopy of MainForm.Designer.cs16.91 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .cs|.csConsoleForm.Designer.cs2.71 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .cs|.csWebServiceForm.cs6.34 Ko31/10/2018 18:32:29-refusé-
Afficher le fichier .resx|.resxOldMainForm.resx58.06 Ko31/10/2018 18:32:28-refusé-
Afficher le fichier .cs|.csCopy of MainForm.cs30.81 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .resx|.resxActorForm.resx44.98 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .resx|.resxBorrowsForm.resx73.4 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .cs|.csMainForm.cs37.45 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .resx|.resxWebServiceForm.resx9.71 Ko31/10/2018 18:32:29-refusé-
Afficher le fichier .cs|.csMainForm.Designer.cs7.16 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .cs|.csBorrowsForm.Designer.cs10.51 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csTasksForm.cs389 octets31/10/2018 18:32:28-refusé-
Afficher le fichier .resx|.resxBiblioBrolAboutBox.resx5.68 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csBrolForm.cs25.87 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .cs|.csWebServiceForm.Designer.cs13.12 Ko31/10/2018 18:32:29-refusé-
Afficher le fichier .cs|.csMediabrolForm.Designer.cs142.05 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .cs|.csConsoleForm.cs2.79 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .cs|.csBrolForm.designer.cs41.73 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .cs|.csMediabrolForm.cs31.94 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .cs|.csStatsForm.Designer.cs11.59 Ko31/10/2018 18:32:28-refusé-
Afficher le fichier .cs|.csActorForm.Designer.cs28.26 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csOldMainForm.Designer.cs83.98 Ko31/10/2018 18:32:28-refusé-
Afficher le fichier .cs|.csStatsForm.cs5 Ko31/10/2018 18:32:28-refusé-
Afficher le fichier .cs|.csBiblioBrolAboutBox.cs5.51 Ko31/10/2018 18:32:25-refusé-
Afficher le fichier .cs|.csOldMainForm.cs27.08 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .resx|.resxTasksForm.resx187.31 Ko31/10/2018 18:32:29-refusé-
Afficher le fichier .cs|.csTasksForm.Designer.cs2.26 Ko31/10/2018 18:32:28-refusé-
Afficher le fichier .resx|.resxBrolForm.resx45.52 Ko31/10/2018 18:32:26-refusé-
Afficher le fichier .resx|.resxCopy of MainForm.resx7.53 Ko31/10/2018 18:32:27-refusé-
Afficher le fichier .resx|.resxStatsForm.resx187.5 Ko31/10/2018 18:32:28-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.

Document créé le 16/10/2009, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/cs-bibliobrol-source-rf-view//BiblioBrolAboutBox.cs.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.