Exemplo n.º 1
0
        public CinderellaPlugin(PubComb plug)
        {
            plugin = plug;
            this.frame = plug.frame;
            this.proxy = plug.proxy;

            //this.proxy.AddDelegate(PacketType.ObjectUpdate, Direction.Incoming, new PacketDelegate(ObjectUpdateHandler));
            //this.proxy.AddDelegate(PacketType.ObjectProperties, Direction.Incoming, new PacketDelegate(ObjectPropertiesHandler));
            this.proxy.AddDelegate(PacketType.ConfirmXferPacket, Direction.Incoming, new PacketDelegate(InConfirmXferPacketHandler));
            this.proxy.AddDelegate(PacketType.RequestXfer, Direction.Incoming, new PacketDelegate(ServerRequestsMyDataToStart));

            //formthread = new Thread(new ThreadStart(delegate()
            //{
                form = new CinderForm1(this);
              //  Application.Run(form);
            //}));
            //formthread.SetApartmentState(ApartmentState.STA);
            //formthread.Start();
        }
Exemplo n.º 2
0
        public CinderellaPlugin(PubComb plug)
        {
            plugin     = plug;
            this.frame = plug.frame;
            this.proxy = plug.proxy;

            //this.proxy.AddDelegate(PacketType.ObjectUpdate, Direction.Incoming, new PacketDelegate(ObjectUpdateHandler));
            //this.proxy.AddDelegate(PacketType.ObjectProperties, Direction.Incoming, new PacketDelegate(ObjectPropertiesHandler));
            this.proxy.AddDelegate(PacketType.ConfirmXferPacket, Direction.Incoming, new PacketDelegate(InConfirmXferPacketHandler));
            this.proxy.AddDelegate(PacketType.RequestXfer, Direction.Incoming, new PacketDelegate(ServerRequestsMyDataToStart));

            //formthread = new Thread(new ThreadStart(delegate()
            //{
            form = new CinderForm1(this);
            //  Application.Run(form);
            //}));
            //formthread.SetApartmentState(ApartmentState.STA);
            //formthread.Start();
        }