private void metroButton1_Click_1(object sender, EventArgs e) { ControlForm controlForm = new ControlForm(); controlForm.Show(); this.Hide(); }
private void NodeControl_Item_Click(object sender, EventArgs e) { if (curSelectNode != null) { ArmClient armClient = null; if (FindDeviceByNoeId(curSelectNode.id, out armClient)) { if (armClient.Status) { ControlForm form = new ControlForm(armClient, curSelectNode); form.Show(); } else { MessageBox.Show("该节点不在线"); } } } else { return; } }
public void NodeCapture() { if (curSelectNode != null) { ArmClient armClient = null; if (FindDeviceByNoeId(curSelectNode.id, out armClient)) { if (armClient.Status) { ControlForm form = new ControlForm(armClient, curSelectNode); form.Show(); } else { MessageBox.Show("该节点不在线"); } } } else { return; } }