Exemple #1
0
 public PAnim(PubComb plug)
 {
     plugin = plug;
     //formthread = new Thread(new ThreadStart(delegate()
     //{
     form = new ProtAnimForm1(this);
     //    Application.Run(form);
     //}));
     //formthread.SetApartmentState(ApartmentState.STA);
     //formthread.Start();
     //    plug.tabform.addATab(form, "ProtAnim");
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     //this.brand = "ProtAnim";
     this.proxy.AddDelegate(PacketType.TransferRequest, Direction.Outgoing, new PacketDelegate(TransferRequestHandler));
     this.proxy.AddDelegate(PacketType.TransferInfo, Direction.Incoming, new PacketDelegate(TransferInfoHandler));
     this.proxy.AddDelegate(PacketType.TransferPacket, Direction.Incoming, new PacketDelegate(TransferPacketHandler));
 }
Exemple #2
0
 public PAnim(PubComb plug)
 {
     plugin = plug;
     //formthread = new Thread(new ThreadStart(delegate()
     //{
         form = new ProtAnimForm1(this);
     //    Application.Run(form);
     //}));
     //formthread.SetApartmentState(ApartmentState.STA);
     //formthread.Start();
     //    plug.tabform.addATab(form, "ProtAnim");
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     //this.brand = "ProtAnim";
     this.proxy.AddDelegate(PacketType.TransferRequest, Direction.Outgoing, new PacketDelegate(TransferRequestHandler));
     this.proxy.AddDelegate(PacketType.TransferInfo, Direction.Incoming, new PacketDelegate(TransferInfoHandler));
     this.proxy.AddDelegate(PacketType.TransferPacket, Direction.Incoming, new PacketDelegate(TransferPacketHandler));
 }