Commit d9b9ab45 authored by wangjunqiang's avatar wangjunqiang

Merge branch 'wang_master' of https://gitee.com/wangwanxh/Vocs into wang_master

parents 99c6abe7 6a292f85
...@@ -13,6 +13,7 @@ namespace GcDevicePc.CK_UI ...@@ -13,6 +13,7 @@ namespace GcDevicePc.CK_UI
{ {
private string user = "admin"; private string user = "admin";
public static bool Island = false; public static bool Island = false;
CKVocAnalyzer.NumForm form;
public LandIn() public LandIn()
{ {
InitializeComponent(); InitializeComponent();
...@@ -29,6 +30,10 @@ namespace GcDevicePc.CK_UI ...@@ -29,6 +30,10 @@ namespace GcDevicePc.CK_UI
{ {
Island = false; Island = false;
} }
if(form!=null)
{
form.Dispose();
}
} }
private void button2_Click(object sender, EventArgs e) //放弃 private void button2_Click(object sender, EventArgs e) //放弃
...@@ -43,7 +48,7 @@ namespace GcDevicePc.CK_UI ...@@ -43,7 +48,7 @@ namespace GcDevicePc.CK_UI
private void textBox2_Click(object sender, EventArgs e) private void textBox2_Click(object sender, EventArgs e)
{ {
CKVocAnalyzer.NumForm form = CKVocAnalyzer.NumForm.GetInstance((TextBox)sender);// new CKVocAnalyzer.NumForm((TextBox)sender); form = CKVocAnalyzer.NumForm.GetInstance((TextBox)sender);// new CKVocAnalyzer.NumForm((TextBox)sender);
form.Show(); form.Show();
} }
......
...@@ -47,8 +47,34 @@ namespace GcDevicePc ...@@ -47,8 +47,34 @@ namespace GcDevicePc
//自动校准 //自动校准
private void buttonauto_Click(object sender, EventArgs e) private void buttonauto_Click(object sender, EventArgs e)
{ {
CKVocAnalyzer.AutoAdjust auto = new CKVocAnalyzer.AutoAdjust(); if (CK_UI.LandIn.Island)
auto.Show(); {
}else
{
}
DialogResult dr = new CK_UI.LandIn().ShowDialog();
if (dr == DialogResult.OK)
{
if (CK_UI.LandIn.Island)
{
CKVocAnalyzer.AutoAdjust auto = new CKVocAnalyzer.AutoAdjust();
auto.Show();
}else
{
MessageBox.Show("无权限操作!!!!");
}
}
if (dr == DialogResult.No)
{
// MessageBox.Show("无权限操作!!!!");
}
} }
} }
......
...@@ -233,7 +233,7 @@ namespace GcDevicePc ...@@ -233,7 +233,7 @@ namespace GcDevicePc
/// <param name="e"></param> /// <param name="e"></param>
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
{ {
this.Text = String.Format("VOCs在线监测-1.0.2.1 {0}",Formstr); this.Text = String.Format("VOCs在线监测-1.0.2.2 {0}",Formstr);
HmiStatus.Text = String.Format("状态:{0}", statestr); HmiStatus.Text = String.Format("状态:{0}", statestr);
// toolStripStatusLabeSystme.Text = String.Format("状态:{0}", statestr); // toolStripStatusLabeSystme.Text = String.Format("状态:{0}", statestr);
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment