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.

Splasher.cs

Description du code

Splasher.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;
  2. using System.Threading;
  3. using System.Windows.Forms;
  4.  
  5. namespace be.gaudry.view
  6. {
  7. public class Splasher
  8. {
  9. #region declarations
  10. static SplashForm splashForm = null;
  11. static Thread splashThread = null;
  12. static String splashText = null;
  13. #endregion
  14.  
  15. #region private methods
  16. /// <summary>
  17. /// internally used as a thread function - showing the form and
  18. /// starting the messageloop for it
  19. /// </summary>
  20. private static void showThread()
  21. {
  22. splashForm = new SplashForm();
  23. if (splashText != null)
  24. splashForm.StatusInfo = splashText;
  25. Application.Run(splashForm);
  26. }
  27. #endregion
  28.  
  29. #region public methods
  30. /// <summary>
  31. /// Start the thread and show the splash screen with a message
  32. /// </summary>
  33. /// <param name="text">(string) text to display on the splash screen</param>
  34. static public void show(String text)
  35. {
  36. if (splashThread != null)
  37. return;
  38. splashText = text;
  39. splashThread = new Thread(new ThreadStart(Splasher.showThread));
  40. splashThread.IsBackground = true;
  41. splashThread.ApartmentState = ApartmentState.STA;
  42. splashThread.Start();
  43. }
  44.  
  45. /// <summary>
  46. /// Start the thread and show the splash screen without message
  47. /// </summary>
  48. static public void show()
  49. {
  50. Splasher.show("");
  51. }
  52.  
  53. /// <summary>
  54. /// Stop the thread and close the splash screen
  55. /// </summary>
  56. static public void close()
  57. {
  58. if (splashThread == null) return;
  59. if (splashForm == null) return;
  60.  
  61. try
  62. {
  63. splashForm.Invoke(new MethodInvoker(splashForm.Close));
  64. }
  65. catch (Exception ex)
  66. {
  67. System.Console.WriteLine(ex.StackTrace);
  68. }
  69. splashThread = null;
  70. splashForm = null;
  71. }
  72. #endregion
  73.  
  74. #region properties
  75. /// <summary>
  76. /// Get or set the splash screen message
  77. /// </summary>
  78. static public string Status
  79. {
  80. set
  81. {
  82. if (splashForm == null)
  83. {
  84. return;
  85. }
  86.  
  87. splashForm.StatusInfo = value;
  88. }
  89. get
  90. {
  91. if (splashForm == null)
  92. {
  93. throw new InvalidOperationException("Splash Form not on screen");
  94. }
  95. return splashForm.StatusInfo;
  96. }
  97. }
  98. #endregion
  99. }
  100. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1714370305 29/04/2024 07:58:25
| _dialogs0 octets1541007195 31/10/2018 18:33:15
| _style0 octets1541007196 31/10/2018 18:33:16
| _utils0 octets1541007196 31/10/2018 18:33:16
| _controls0 octets1541007193 31/10/2018 18:33:13
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csDummyDoc.cs1.95 Ko31/10/2018 18:32:48-refusé-
Afficher le fichier .cs|.csIMDIParent.cs2.33 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csMDIChildForm.cs11.93 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csSplashForm.Designer.cs4.45 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csSourcesForm.Designer.cs8.14 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csDummyDoc.Designer.cs6.42 Ko31/10/2018 18:32:48-refusé-
Afficher le fichier .cs|.csSplashForm.cs1.02 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csMDIParentForm.cs13.52 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .resx|.resxSplashForm.resx5.68 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csMDIParentForm.MDIFeatures.cs14.33 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .resx|.resxMDIChildForm.resx5.68 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csTestForm.cs350 octets31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csSplasher.cs2.81 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .resx|.resxDummyDoc.resx7.02 Ko31/10/2018 18:32:48-refusé-
Afficher le fichier .cs|.csMDIParentForm.Designer.cs44.09 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .resx|.resxSourcesForm.resx41.87 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csSourcesForm.cs1.83 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csTestForm.Designer.cs1.15 Ko31/10/2018 18:32:50-refusé-
Afficher le fichier .resx|.resxMDIParentForm.resx42.14 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csMDIChildForm.Designer.cs1.46 Ko31/10/2018 18:32:49-refusé-
Afficher le fichier .cs|.csIMDIChild.cs151 octets31/10/2018 18:32:48-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/Splasher.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.