Commit 6a292f85 authored by wangwanxh@sina.com's avatar wangwanxh@sina.com

更新绘画

parent e4dcab82
...@@ -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();
} }
......
...@@ -49,12 +49,32 @@ namespace GcDevicePc ...@@ -49,12 +49,32 @@ namespace GcDevicePc
{ {
if (CK_UI.LandIn.Island) if (CK_UI.LandIn.Island)
{ {
CKVocAnalyzer.AutoAdjust auto = new CKVocAnalyzer.AutoAdjust();
auto.Show();
}else }else
{ {
MessageBox.Show("无权限操作!!!!");
} }
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