コード例 #1
0
        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);
        }
コード例 #2
0
 public TunnelWindow(SessionSelect sessionSelect)
 {
     InitializeComponent();
     this.sessionSelect = sessionSelect;
 }