Beispiel #1
0
        public Form2()
        {
            InitializeComponent();
            ZDStudioWorld aWorld = new ZDStudioWorld(5, 2);

            nodeGraph2.World = aWorld;
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            ZDStudioWorld aWorld = new ZDStudioWorld(5, 2);

            nodeGraph.World = aWorld;
            // this.BackgroundImage = Image.FromFile(@"test.png");
            //  this.BackgroundImage = this.imageList1.Images[0]
            // Now initialize some properties & events.
            //   nodeGraph.NetworkIPAddress = "127.0.0.1"; // default ip is 127.0.0.1
            //	nodeGraph.NetworkPort = 6666; // default port is 6666
            nodeGraph.ConnectionClosed      += NodeGraph_ConnectionClosed;
            nodeGraph.ConnectionEstablished += NodeGraph_ConnectionEstablished;
            IPAddressNum.Text = "127.0.0.1";
            PortNum.Text      = "6666";
        }