private void DeviceList_AfterSelect(object sender, TreeViewEventArgs e) { if (e.Node.Tag.ToString().Equals("1")) { RemoteControl dlg = new RemoteControl(); dlg.Show(); } else if (e.Node.Tag.ToString().Equals("2")) { } else if (e.Node.Tag.ToString().Equals("3")) { mainframe dlg = new mainframe(); dlg.Show(); } else if (e.Node.Tag.ToString().Equals("4")) { ; } else if (e.Node.Tag.ToString().Equals("5")) { } }
private void RemoteTest_Click(object sender, EventArgs e) { RemoteControl dlg = new RemoteControl(); dlg.Show(); }