private void TunnelWindow_Load(object sender, EventArgs e) { Connection.callbacks["scene/get"] = (json) => { Invoke((Action) delegate { treeView1.Nodes.Clear(); TreeNode rootNode = buildTree(json); treeView1.Nodes.Add(rootNode); }); }; Connection.callbacks["tunnel/close"] = (json) => { Invoke((Action) delegate { sessionSelect.Show(); sessionSelect = null; Close(); }); }; Connection.sendTunnel("scene/get", null); //button7_Click(sender, e); }
public TunnelWindow(SessionSelect sessionSelect) { InitializeComponent(); this.sessionSelect = sessionSelect; }