版博士V2.0程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
992 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace AssistClient.UI
  11. {
  12. public partial class UILabelNum : UserControl
  13. {
  14. public UILabelNum(string lb)
  15. {
  16. InitializeComponent();
  17. label1.Text = lb;
  18. }
  19. public int GetPage()
  20. {
  21. return int.Parse(label1.Text);
  22. }
  23. public void SetSelect(bool select)
  24. {
  25. if (select)
  26. {
  27. this.BackColor = System.Drawing.SystemColors.Highlight;
  28. }
  29. else
  30. {
  31. this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
  32. }
  33. }
  34. private void label1_Click(object sender, EventArgs e)
  35. {
  36. this.OnClick(null);
  37. }
  38. }
  39. }