UserItem.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ImpulseVision
  8. {
  9. #region <Плитка для отображения имён пользователей>
  10. public class UserItem : RPanel
  11. {
  12. public UserItem()
  13. {
  14. this.LblNameUser = new System.Windows.Forms.Label();
  15. //
  16. // TileUser
  17. //
  18. this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  19. | System.Windows.Forms.AnchorStyles.Right)));
  20. this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
  21. this.BackColorAdditional = System.Drawing.Color.Gray;
  22. this.BackColorGradientEnabled = false;
  23. this.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
  24. this.BorderColor = System.Drawing.Color.Tomato;
  25. this.BorderColorEnabled = false;
  26. this.BorderColorOnHover = System.Drawing.Color.Tomato;
  27. this.BorderColorOnHoverEnabled = false;
  28. this.Controls.Add(this.LblNameUser);
  29. this.Cursor = System.Windows.Forms.Cursors.Default;
  30. this.Font = new System.Drawing.Font("Verdana", 8.25F);
  31. this.ForeColor = System.Drawing.Color.White;
  32. this.Location = new System.Drawing.Point(12, 29);
  33. this.Name = "TileUser";
  34. this.RippleColor = System.Drawing.Color.Black;
  35. this.RoundingEnable = true;
  36. this.Size = new System.Drawing.Size(566, 43);
  37. this.TabIndex = 0;
  38. this.TextHover = null;
  39. this.UseDownPressEffectOnClick = false;
  40. this.UseRippleEffect = true;
  41. this.UseZoomEffectOnHover = false;
  42. //
  43. // LblNameUser
  44. //
  45. this.LblNameUser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  46. | System.Windows.Forms.AnchorStyles.Left)
  47. | System.Windows.Forms.AnchorStyles.Right)));
  48. this.LblNameUser.BackColor = System.Drawing.Color.Transparent;
  49. this.LblNameUser.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
  50. this.LblNameUser.ForeColor = System.Drawing.Color.Black;
  51. this.LblNameUser.Location = new System.Drawing.Point(3, 0);
  52. this.LblNameUser.Name = "LblNameUser";
  53. this.LblNameUser.Size = new System.Drawing.Size(560, 43);
  54. this.LblNameUser.TabIndex = 0;
  55. this.LblNameUser.Text = "Сидоров Иван Игоревич";
  56. this.LblNameUser.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  57. }
  58. public string UserID;
  59. public System.Windows.Forms.Label LblNameUser;
  60. }
  61. #endregion
  62. }