示例#1
0
        private void Main_Load(object sender, EventArgs e)
        {
            simulationThread = new Thread(SimulationLoop);
            simulationThread.Start();
            {
                var d = new WorldData();
                d.Gravity = new Vec2(0, 10);
                var node = new WorldNode("World", d);
                treeView1.Nodes.Add(node);

                node.Expand();
            }

            imageList1.Images.Add(Properties.Resources.world);
            imageList1.Images.Add(Properties.Resources.circle);
            imageList1.Images.Add(Properties.Resources.polygon);
            imageList1.Images.Add(Properties.Resources.body);

            treeView1.ImageList = imageList1;
        }
示例#2
0
文件: Main.cs 项目: RubisetCie/box2c
        private void Main_Load(object sender, EventArgs e)
        {
            simulationThread = new Thread(SimulationLoop);
            simulationThread.Start();
            {
                var d = new WorldData();
                d.Gravity = new Vec2(0, 10);
                var node = new WorldNode("World", d);
                treeView1.Nodes.Add(node);

                node.Expand();
            }

            imageList1.Images.Add(Properties.Resources.world);
            imageList1.Images.Add(Properties.Resources.circle);
            imageList1.Images.Add(Properties.Resources.polygon);
            imageList1.Images.Add(Properties.Resources.body);

            treeView1.ImageList = imageList1;
        }