IKLinkLabel.cs 855 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.ComponentModel;
  2. using System.Windows.Forms;
  3. namespace Infoking.Common.Windows.Control
  4. {
  5. public class IKLinkLabel : LinkLabel
  6. {
  7. private Container components;
  8. [ReadOnly(true)]
  9. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  10. [Description("Get or Set text.")]
  11. [Category("BizPeri Configuration")]
  12. public string CValue
  13. {
  14. get
  15. {
  16. return Text;
  17. }
  18. set
  19. {
  20. Text = value;
  21. }
  22. }
  23. public IKLinkLabel()
  24. {
  25. InitializeComponent();
  26. }
  27. protected override void Dispose(bool disposing)
  28. {
  29. if (disposing && components != null)
  30. {
  31. components.Dispose();
  32. }
  33. base.Dispose(disposing);
  34. }
  35. private void InitializeComponent()
  36. {
  37. components = new System.ComponentModel.Container();
  38. }
  39. protected override void OnPaint(PaintEventArgs pe)
  40. {
  41. base.OnPaint(pe);
  42. }
  43. }
  44. }