|
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
-
- namespace AssistClient.UI
- {
- public partial class UILabelNum : UserControl
- {
- public UILabelNum(string lb)
- {
- InitializeComponent();
- label1.Text = lb;
- }
- public int GetPage()
- {
- return int.Parse(label1.Text);
- }
-
- public void SetSelect(bool select)
- {
- if (select)
- {
- this.BackColor = System.Drawing.SystemColors.Highlight;
- }
- else
- {
- this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- }
- }
-
- private void label1_Click(object sender, EventArgs e)
- {
- this.OnClick(null);
- }
- }
- }
|