TrackIntParameterDialog.cs

Description du code

TrackIntParameterDialog.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.Windows.Forms;
  3.  
  4. namespace be.gaudry.photobrol.view.dialogs
  5. {
  6. public partial class TrackIntParameterDialog : Form
  7. {
  8. bool displayP1, displayP2, displayP3;
  9. public TrackIntParameterDialog()
  10. {
  11. displayP1 = false;
  12. displayP2 = false;
  13. displayP3 = false;
  14. InitializeComponent();
  15. }
  16.  
  17. private void adaptTrkB()
  18. {
  19. int freq = (int)(((float)parameterTrkB.Maximum - parameterTrkB.Minimum) / 10);
  20. if (freq < 1) freq = 1;
  21. parameterTrkB.TickFrequency = freq;
  22. parameterTrkB.SmallChange = freq;
  23. parameterTrkB.LargeChange = freq * 2;
  24. valueTB.Text = parameterTrkB.Value.ToString();
  25. }
  26.  
  27. public String Info
  28. {
  29. get { return infoLbl.Text; }
  30. set { infoLbl.Text = value; }
  31. }
  32.  
  33. public String ValueInfo
  34. {
  35. get { return valueInfoLbl.Text; }
  36. set { valueInfoLbl.Text = value; }
  37. }
  38.  
  39. #region track bar
  40.  
  41. private void parameterTrkB_Scroll(object sender, EventArgs e)
  42. {
  43. valueTB.Text = parameterTrkB.Value.ToString();
  44. }
  45. public int Value
  46. {
  47. get { return parameterTrkB.Value; }
  48. set { parameterTrkB.Value = value; }
  49. }
  50.  
  51. public int MinimumValue
  52. {
  53. get { return parameterTrkB.Minimum; }
  54. set { parameterTrkB.Minimum = value; }
  55. }
  56.  
  57. public int MaximumValue
  58. {
  59. get { return parameterTrkB.Maximum; }
  60. set { parameterTrkB.Maximum = value; }
  61. }
  62.  
  63. #endregion
  64.  
  65. #region check boxes
  66. #region param 1 CheckBox
  67. public bool DisplayChkB1
  68. {
  69. get { return displayP1; }
  70. set { displayP1 = value; }
  71. }
  72.  
  73. public String ValueChkB1Text
  74. {
  75. get { return param1ChkB.Text; }
  76. set { param1ChkB.Text = value; }
  77. }
  78.  
  79. public bool ValueChkB1Checked
  80. {
  81. get { return param1ChkB.Checked; }
  82. set { param1ChkB.Checked = value; }
  83. }
  84. #endregion
  85.  
  86. #region param 2 CheckBox
  87. public bool DisplayChkB2
  88. {
  89. get { return displayP2; }
  90. set { displayP2 = value; }
  91. }
  92.  
  93. public String ValueChkB2Text
  94. {
  95. get { return param2ChkB.Text; }
  96. set { param2ChkB.Text = value; }
  97. }
  98.  
  99. public bool ValueChkB2Checked
  100. {
  101. get { return param2ChkB.Checked; }
  102. set { param2ChkB.Checked = value; }
  103. }
  104. #endregion
  105.  
  106. #region param 3 CheckBox
  107. public bool DisplayChkB3
  108. {
  109. get { return displayP3; }
  110. set { displayP3 = value; }
  111. }
  112.  
  113. public String ValueChkB3Text
  114. {
  115. get { return param3ChkB.Text; }
  116. set { param3ChkB.Text = value; }
  117. }
  118.  
  119. public bool ValueChkB3Checked
  120. {
  121. get { return param3ChkB.Checked; }
  122. set { param3ChkB.Checked = value; }
  123. }
  124. #endregion
  125. #endregion
  126.  
  127. private void TrackIntParameterDialog_Load(object sender, EventArgs e)
  128. {
  129. adaptTrkB();
  130. if (displayP1 && !String.Empty.Equals(param1ChkB.Text))
  131. param1ChkB.Visible = true;
  132. if (displayP2 && !String.Empty.Equals(param2ChkB.Text))
  133. param2ChkB.Visible = true;
  134. if (displayP3 && !String.Empty.Equals(param3ChkB.Text))
  135. param3ChkB.Visible = true;
  136. }
  137. private void resetChkB(CheckBox chkB)
  138. {
  139. chkB.Visible = false;
  140. chkB.Text = "";
  141. chkB.Checked = false;
  142. }
  143. private void resetAllChkB()
  144. {
  145. resetChkB(param1ChkB);
  146. resetChkB(param2ChkB);
  147. resetChkB(param3ChkB);
  148. }
  149.  
  150. private void TrackIntParameterDialog_FormClosing(object sender, FormClosingEventArgs e)
  151. {
  152. resetAllChkB();
  153. }
  154. }
  155. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/dialogs/ 
IcôneNomTailleModification
Pas de sous-répertoires.
IcôneNomTailleModification
| _ Répertoire parent0 octets1716138005 19/05/2024 19:00:05
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/dialogs/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csTrackIntParameterDialog.cs4.2 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csHSLDialog.cs8.25 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csExceptionDialog.cs3.58 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csVersionForm.Designer.cs6.72 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .resx|.resxCriticalExceptionDialog.resx5.68 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .resx|.resxTrackFloatParameterDialog.resx5.68 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csDGVLayoutOptionsDialog.designer.cs5.12 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csExceptionDialog.Designer.cs6.2 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .resx|.resxCustomOpenResultFileDialog.resx6.06 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .resx|.resxVersionForm.resx42.91 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csAboutBrolDevlDialog.Designer.cs2.24 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .resx|.resxDGVLayoutOptionsDialog.resx5.68 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .resx|.resxInfobrolForm.resx40.95 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csTrackFloatParameterDialog.cs2.41 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .resx|.resxUpdateDialog.resx5.68 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csCustomOpenResultFileDialog.Designer.cs7.44 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csCriticalExceptionDialog.Designer.cs8.88 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .cs|.csTrackIntParameterDialog.Designer.cs8.02 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csDGVLayoutOptionsDialog.cs1.05 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csUpdateDialog.Designer.cs2.02 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csUpdateDialog.cs360 octets31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csAboutBrolDevlDialog.cs230 octets31/10/2018 18:33:13-refusé-
Afficher le fichier .cs|.csCustomOpenResultFileDialog.cs4.84 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .resx|.resxExceptionDialog.resx5.68 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .resx|.resxHSLDialog.resx5.68 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .resx|.resxAboutBrolDevlDialog.resx5.68 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .cs|.csTrackFloatParameterDialog.Designer.cs6.31 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .resx|.resxResizeDialog.resx5.68 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csHSLDialog.Designer.cs14.28 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csResizeDialog.cs1.09 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csCriticalExceptionDialog.cs1.87 Ko31/10/2018 18:33:13-refusé-
Afficher le fichier .cs|.csVersionForm.cs1.16 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .resx|.resxTrackIntParameterDialog.resx5.68 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csInfobrolForm.cs198 octets31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csInfobrolForm.Designer.cs2.45 Ko31/10/2018 18:33:14-refusé-
Afficher le fichier .cs|.csResizeDialog.Designer.cs5.3 Ko31/10/2018 18:33:14-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-broldev-source-rf-view/dialogs//TrackIntParameterDialog.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.