TileOvals.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. namespace ImpulseVision
  8. {
  9. /// <summary>
  10. /// Овальноподобные плитки для вывода журнала посещений
  11. /// </summary>
  12. public class TileOvals : Panel
  13. {
  14. public RPanel RPanelName;
  15. public System.Windows.Forms.Label LblNameUser;
  16. public RPanel RPanelDate;
  17. public System.Windows.Forms.Label LblDate;
  18. public RPanel RPanelTimeExit;
  19. public System.Windows.Forms.Label LblTimeExit;
  20. public RPanel RPanelTimeEntrance;
  21. public System.Windows.Forms.Label LblTimeEntrance;
  22. public string UserID;
  23. public string IsIdentification;
  24. public TileOvals()
  25. {
  26. //this = new System.Windows.Forms.Panel();
  27. this.RPanelName = new ImpulseVision.RPanel();
  28. this.LblNameUser = new System.Windows.Forms.Label();
  29. this.RPanelTimeEntrance = new ImpulseVision.RPanel();
  30. this.LblTimeEntrance = new System.Windows.Forms.Label();
  31. this.RPanelTimeExit = new ImpulseVision.RPanel();
  32. this.LblTimeExit = new System.Windows.Forms.Label();
  33. this.RPanelDate = new ImpulseVision.RPanel();
  34. this.LblDate = new System.Windows.Forms.Label();
  35. //this.SuspendLayout();
  36. //this.RPanelName.SuspendLayout();
  37. this.RPanelTimeEntrance.SuspendLayout();
  38. this.RPanelTimeExit.SuspendLayout();
  39. this.RPanelDate.SuspendLayout();
  40. //this.SuspendLayout();
  41. //
  42. // PanelTile
  43. //
  44. this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  45. | System.Windows.Forms.AnchorStyles.Right)));
  46. this.Controls.Add(this.RPanelDate);
  47. this.Controls.Add(this.RPanelTimeExit);
  48. this.Controls.Add(this.RPanelTimeEntrance);
  49. this.Controls.Add(this.RPanelName);
  50. this.Location = new System.Drawing.Point(3, 31);
  51. this.Name = "PanelTile";
  52. this.Size = new System.Drawing.Size(638, 50);
  53. this.TabIndex = 0;
  54. //
  55. // RPanelName
  56. //
  57. this.RPanelName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  58. | System.Windows.Forms.AnchorStyles.Right)));
  59. this.RPanelName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
  60. this.RPanelName.BackColorAdditional = System.Drawing.Color.Gray;
  61. this.RPanelName.BackColorGradientEnabled = false;
  62. this.RPanelName.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
  63. this.RPanelName.BorderColor = System.Drawing.Color.Tomato;
  64. this.RPanelName.BorderColorEnabled = false;
  65. this.RPanelName.BorderColorOnHover = System.Drawing.Color.Tomato;
  66. this.RPanelName.BorderColorOnHoverEnabled = false;
  67. this.RPanelName.Controls.Add(this.LblNameUser);
  68. this.RPanelName.Cursor = System.Windows.Forms.Cursors.Default;
  69. this.RPanelName.Font = new System.Drawing.Font("Verdana", 8.25F);
  70. this.RPanelName.ForeColor = System.Drawing.Color.White;
  71. this.RPanelName.Location = new System.Drawing.Point(3, 3);
  72. this.RPanelName.Name = "RPanelName";
  73. this.RPanelName.RippleColor = System.Drawing.Color.Black;
  74. this.RPanelName.RoundingEnable = true;
  75. this.RPanelName.Size = new System.Drawing.Size(290, 43);
  76. this.RPanelName.TabIndex = 1;
  77. this.RPanelName.TextHover = null;
  78. this.RPanelName.UseDownPressEffectOnClick = false;
  79. this.RPanelName.UseRippleEffect = true;
  80. this.RPanelName.UseZoomEffectOnHover = false;
  81. //
  82. // LblNameUser
  83. //
  84. this.LblNameUser.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  85. | System.Windows.Forms.AnchorStyles.Right)));
  86. this.LblNameUser.BackColor = System.Drawing.Color.Transparent;
  87. this.LblNameUser.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
  88. this.LblNameUser.ForeColor = System.Drawing.Color.Black;
  89. this.LblNameUser.Location = new System.Drawing.Point(3, 0);
  90. this.LblNameUser.Name = "LblNameUser";
  91. this.LblNameUser.Size = new System.Drawing.Size(284, 43);
  92. this.LblNameUser.TabIndex = 0;
  93. this.LblNameUser.Text = "Сидоров Иван Игоревич";
  94. this.LblNameUser.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  95. //
  96. // RPanelTimeEntrance
  97. //
  98. this.RPanelTimeEntrance.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  99. this.RPanelTimeEntrance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
  100. this.RPanelTimeEntrance.BackColorAdditional = System.Drawing.Color.Gray;
  101. this.RPanelTimeEntrance.BackColorGradientEnabled = false;
  102. this.RPanelTimeEntrance.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
  103. this.RPanelTimeEntrance.BorderColor = System.Drawing.Color.Tomato;
  104. this.RPanelTimeEntrance.BorderColorEnabled = false;
  105. this.RPanelTimeEntrance.BorderColorOnHover = System.Drawing.Color.Tomato;
  106. this.RPanelTimeEntrance.BorderColorOnHoverEnabled = false;
  107. this.RPanelTimeEntrance.Controls.Add(this.LblTimeEntrance);
  108. this.RPanelTimeEntrance.Cursor = System.Windows.Forms.Cursors.Default;
  109. this.RPanelTimeEntrance.Font = new System.Drawing.Font("Verdana", 8.25F);
  110. this.RPanelTimeEntrance.ForeColor = System.Drawing.Color.White;
  111. this.RPanelTimeEntrance.Location = new System.Drawing.Point(296, 3);
  112. this.RPanelTimeEntrance.Name = "RPanelTimeEntrance";
  113. this.RPanelTimeEntrance.RippleColor = System.Drawing.Color.Black;
  114. this.RPanelTimeEntrance.RoundingEnable = true;
  115. this.RPanelTimeEntrance.Size = new System.Drawing.Size(105, 43);
  116. this.RPanelTimeEntrance.TabIndex = 2;
  117. this.RPanelTimeEntrance.TextHover = null;
  118. this.RPanelTimeEntrance.UseDownPressEffectOnClick = false;
  119. this.RPanelTimeEntrance.UseRippleEffect = true;
  120. this.RPanelTimeEntrance.UseZoomEffectOnHover = false;
  121. //
  122. // LblTimeEntrance
  123. //
  124. this.LblTimeEntrance.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  125. | System.Windows.Forms.AnchorStyles.Right)));
  126. this.LblTimeEntrance.BackColor = System.Drawing.Color.Transparent;
  127. this.LblTimeEntrance.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
  128. this.LblTimeEntrance.ForeColor = System.Drawing.Color.Black;
  129. this.LblTimeEntrance.Location = new System.Drawing.Point(3, 0);
  130. this.LblTimeEntrance.Name = "LblTimeEntrance";
  131. this.LblTimeEntrance.Size = new System.Drawing.Size(99, 43);
  132. this.LblTimeEntrance.TabIndex = 0;
  133. this.LblTimeEntrance.Text = "13:15:00";
  134. this.LblTimeEntrance.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  135. //
  136. // RPanelTimeExit
  137. //
  138. this.RPanelTimeExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  139. this.RPanelTimeExit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
  140. this.RPanelTimeExit.BackColorAdditional = System.Drawing.Color.Gray;
  141. this.RPanelTimeExit.BackColorGradientEnabled = false;
  142. this.RPanelTimeExit.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
  143. this.RPanelTimeExit.BorderColor = System.Drawing.Color.Tomato;
  144. this.RPanelTimeExit.BorderColorEnabled = false;
  145. this.RPanelTimeExit.BorderColorOnHover = System.Drawing.Color.Tomato;
  146. this.RPanelTimeExit.BorderColorOnHoverEnabled = false;
  147. this.RPanelTimeExit.Controls.Add(this.LblTimeExit);
  148. this.RPanelTimeExit.Cursor = System.Windows.Forms.Cursors.Default;
  149. this.RPanelTimeExit.Font = new System.Drawing.Font("Verdana", 8.25F);
  150. this.RPanelTimeExit.ForeColor = System.Drawing.Color.White;
  151. this.RPanelTimeExit.Location = new System.Drawing.Point(404, 3);
  152. this.RPanelTimeExit.Name = "RPanelTimeExit";
  153. this.RPanelTimeExit.RippleColor = System.Drawing.Color.Black;
  154. this.RPanelTimeExit.RoundingEnable = true;
  155. this.RPanelTimeExit.Size = new System.Drawing.Size(105, 43);
  156. this.RPanelTimeExit.TabIndex = 3;
  157. this.RPanelTimeExit.TextHover = null;
  158. this.RPanelTimeExit.UseDownPressEffectOnClick = false;
  159. this.RPanelTimeExit.UseRippleEffect = true;
  160. this.RPanelTimeExit.UseZoomEffectOnHover = false;
  161. //
  162. // LblTimeExit
  163. //
  164. this.LblTimeExit.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  165. | System.Windows.Forms.AnchorStyles.Right)));
  166. this.LblTimeExit.BackColor = System.Drawing.Color.Transparent;
  167. this.LblTimeExit.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
  168. this.LblTimeExit.ForeColor = System.Drawing.Color.Black;
  169. this.LblTimeExit.Location = new System.Drawing.Point(3, 0);
  170. this.LblTimeExit.Name = "LblTimeExit";
  171. this.LblTimeExit.Size = new System.Drawing.Size(99, 43);
  172. this.LblTimeExit.TabIndex = 0;
  173. this.LblTimeExit.Text = "13:15:00";
  174. this.LblTimeExit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  175. //
  176. // RPanelDate
  177. //
  178. this.RPanelDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  179. this.RPanelDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
  180. this.RPanelDate.BackColorAdditional = System.Drawing.Color.Gray;
  181. this.RPanelDate.BackColorGradientEnabled = false;
  182. this.RPanelDate.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
  183. this.RPanelDate.BorderColor = System.Drawing.Color.Tomato;
  184. this.RPanelDate.BorderColorEnabled = false;
  185. this.RPanelDate.BorderColorOnHover = System.Drawing.Color.Tomato;
  186. this.RPanelDate.BorderColorOnHoverEnabled = false;
  187. this.RPanelDate.Controls.Add(this.LblDate);
  188. this.RPanelDate.Cursor = System.Windows.Forms.Cursors.Default;
  189. this.RPanelDate.Font = new System.Drawing.Font("Verdana", 8.25F);
  190. this.RPanelDate.ForeColor = System.Drawing.Color.White;
  191. this.RPanelDate.Location = new System.Drawing.Point(512, 3);
  192. this.RPanelDate.Name = "RPanelDate";
  193. this.RPanelDate.RippleColor = System.Drawing.Color.Black;
  194. this.RPanelDate.RoundingEnable = true;
  195. this.RPanelDate.Size = new System.Drawing.Size(123, 43);
  196. this.RPanelDate.TabIndex = 4;
  197. this.RPanelDate.TextHover = null;
  198. this.RPanelDate.UseDownPressEffectOnClick = false;
  199. this.RPanelDate.UseRippleEffect = true;
  200. this.RPanelDate.UseZoomEffectOnHover = false;
  201. //
  202. // LblDate
  203. //
  204. this.LblDate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  205. | System.Windows.Forms.AnchorStyles.Right)));
  206. this.LblDate.BackColor = System.Drawing.Color.Transparent;
  207. this.LblDate.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
  208. this.LblDate.ForeColor = System.Drawing.Color.Black;
  209. this.LblDate.Location = new System.Drawing.Point(3, 0);
  210. this.LblDate.Name = "LblDate";
  211. this.LblDate.Size = new System.Drawing.Size(117, 43);
  212. this.LblDate.TabIndex = 0;
  213. this.LblDate.Text = "26.04.2023";
  214. this.LblDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  215. }
  216. }
  217. }