BrolExplorerAboutBox.cs

Description du code

BrolExplorerAboutBox.cs est un fichier du projet BrolExplorer.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/brolexplorer/.

Projet BrolExplorer :

Explorateur de media en CSharp.

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.  
  8. namespace be.gaudry.explorer.view
  9. {
  10. public partial class BrolExplorerAboutBox : Form
  11. {
  12. public BrolExplorerAboutBox()
  13. {
  14. InitializeComponent();
  15.  
  16. // Initialize the AboutBox to display the product information from the assembly information.
  17. // Change assembly information settings for your application through either:
  18. // - Project->Properties->Application->Assembly Information
  19. // - AssemblyInfo.cs
  20. this.Text = String.Format("A propos de {0}", AssemblyTitle);
  21. this.labelProductName.Text = AssemblyProduct;
  22. this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
  23. this.labelCopyright.Text = AssemblyCopyright;
  24. this.labelCompanyName.Text = AssemblyCompany;
  25. this.textBoxDescription.Text = AssemblyDescription;
  26. }
  27.  
  28. #region Assembly Attribute Accessors
  29.  
  30. public string AssemblyTitle
  31. {
  32. get
  33. {
  34. // Get all ParameterTitle properties on this assembly
  35. object[] properties = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
  36. // If there is at least one ParameterTitle attribute
  37. if (properties.Length > 0)
  38. {
  39. // Select the first one
  40. AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)properties[0];
  41. // If it is not an empty string, return it
  42. if (titleAttribute.Title != "")
  43. return titleAttribute.Title;
  44. }
  45. // If there was no ParameterTitle attribute, or if the ParameterTitle attribute was the empty string, return the .exe name
  46. return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
  47. }
  48. }
  49.  
  50. public string AssemblyVersion
  51. {
  52. get
  53. {
  54. return Assembly.GetExecutingAssembly().GetName().Version.ToString();
  55. }
  56. }
  57.  
  58. public string AssemblyDescription
  59. {
  60. get
  61. {
  62. // Get all Description properties on this assembly
  63. object[] properties = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
  64. // If there aren't any Description properties, return an empty string
  65. if (properties.Length == 0)
  66. return "";
  67. // If there is a Description attribute, return its value
  68. return ((AssemblyDescriptionAttribute)properties[0]).Description;
  69. }
  70. }
  71.  
  72. public string AssemblyProduct
  73. {
  74. get
  75. {
  76. // Get all Product properties on this assembly
  77. object[] properties = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
  78. // If there aren't any Product properties, return an empty string
  79. if (properties.Length == 0)
  80. return "";
  81. // If there is a Product attribute, return its value
  82. return ((AssemblyProductAttribute)properties[0]).Product;
  83. }
  84. }
  85.  
  86. public string AssemblyCopyright
  87. {
  88. get
  89. {
  90. // Get all Copyright properties on this assembly
  91. object[] properties = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
  92. // If there aren't any Copyright properties, return an empty string
  93. if (properties.Length == 0)
  94. return "";
  95. // If there is a Copyright attribute, return its value
  96. return ((AssemblyCopyrightAttribute)properties[0]).Copyright;
  97. }
  98. }
  99.  
  100. public string AssemblyCompany
  101. {
  102. get
  103. {
  104. // Get all Company properties on this assembly
  105. object[] properties = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
  106. // If there aren't any Company properties, return an empty string
  107. if (properties.Length == 0)
  108. return "";
  109. // If there is a Company attribute, return its value
  110. return ((AssemblyCompanyAttribute)properties[0]).Company;
  111. }
  112. }
  113. #endregion
  114. }
  115. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/brolexplorer/view/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1719726180 30/06/2024 07:43:00
| _controls0 octets1541007170 31/10/2018 18:32:50
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/brolexplorer/view/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .resx|.resxBrolExplorerAboutBox.resx5.68 Ko31/10/2018 18:32:21-refusé-
Afficher le fichier .resx|.resxShell32IconsForm.resx16.57 Ko31/10/2018 18:32:22-refusé-
Afficher le fichier .cs|.csBrolExplorerAboutBox.Designer.cs10.29 Ko31/10/2018 18:32:21-refusé-
Afficher le fichier .cs|.csShell32IconsForm.Designer.cs5.09 Ko31/10/2018 18:32:22-refusé-
Afficher le fichier .cs|.csBrolExplorerAboutBox.cs4.74 Ko31/10/2018 18:32:21-refusé-
Afficher le fichier .resx|.resxExplorerForm.resx49.49 Ko31/10/2018 18:32:22-refusé-
Afficher le fichier .cs|.csExplorerForm.cs16.13 Ko31/10/2018 18:32:22-refusé-
Afficher le fichier .cs|.csExplorerForm.Designer.cs43.45 Ko31/10/2018 18:32:22-refusé-
Afficher le fichier .cs|.csShell32IconsForm.cs1.32 Ko31/10/2018 18:32: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.

Document créé le 30/10/2009, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/cs-brolexplorer-source-rf-view//BrolExplorerAboutBox.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.