using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace IntelligentControlForsx.MyControls.kz { public partial class QS_Control : UserControl { //期次 private string project = "SBQ01_GC"; //第一次加载 public bool firstLoad = true; public QS_Control() { InitializeComponent(); } public void Active() { timer1.Enabled = true; } public void DeActive() { timer1.Enabled = false; } private void lblProject1_Click(object sender, EventArgs e) { project = "SBQ01_GC"; firstLoad = true; //ThreadInfo(); lblProject1.BackColor = Color.FromArgb(15, 141, 106); lblProject2.BackColor = Color.FromArgb(3, 24, 48); } private void lblProject2_Click(object sender, EventArgs e) { project = "SBQ02_GC"; firstLoad = true; //ThreadInfo(); lblProject1.BackColor = Color.FromArgb(3, 24, 48); lblProject2.BackColor = Color.FromArgb(15, 141, 106); } private void timer1_Tick(object sender, EventArgs e) { } } }