1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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)
- {
- }
-
- }
- }
|