Пример #1
0
 //设置
 private void button3_Click(object sender, RoutedEventArgs e)
 {
     Hide();
     Window1 m = new Window1();
     m.ShowDialog();
 }
Пример #2
0
 //设置组属性
 public void String()
 {
     string a;
     string b;
     string c;
     // Window1 m = new Window1();
     var m = new Window1();
     a = m.TextBox1.Text;
     _kepServer.OPCGroups.DefaultGroupIsActive = Convert.ToBoolean(a);
     b = m.TextBox2.Text;
     _kepServer.OPCGroups.DefaultGroupDeadband = Convert.ToInt32(b);
     c = m.TextBox3.Text;
     _kepGroup.UpdateRate = Convert.ToInt32(c);
     var d = m.TextBox4.Text;
     _kepGroup.IsActive = Convert.ToBoolean(d);
     var e = m.TextBox5.Text;
     _kepGroup.IsSubscribed = Convert.ToBoolean(e);
 }