UCNavigationTool.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LYFZ.ComponentLibrary
  10. {
  11. public partial class UCNavigationTool : UserControl
  12. {
  13. public UCNavigationTool()
  14. {
  15. InitializeComponent();
  16. this.BackColor = LYFZ.ComponentLibrary.GetUIResources.UCNavigationToolColor;
  17. this.panelEx1.BackgroundImage = LYFZ.ComponentLibrary.GetUIResources.main_Navigation;
  18. }
  19. /// <summary>
  20. /// 获取或设置当前标题
  21. /// </summary>
  22. [DescriptionAttribute("设置当前标题"), CategoryAttribute("组件扩展属性")]
  23. public string LabTitle {
  24. get { return this.labCTile.Text; }
  25. set
  26. {
  27. this.labCTile.Text = value;
  28. if (value.Trim().Length <= 0)
  29. {
  30. this.labelEx1.Text = "主界面";
  31. }
  32. else {
  33. this.labelEx1.Text = "主界面 > ";
  34. }
  35. }
  36. }
  37. }
  38. }