Пример #1
0
 public HandicapPlugin(PubComb plug)
 {
     //formthread = new Thread(new ThreadStart(delegate()
     //{
         form = new HandiForm1(this);
     //    Application.Run(form);
     //}));
     //formthread.SetApartmentState(ApartmentState.STA);
     //formthread.Start();
         plugin = plug;
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     //plug.tabform.addATab(form, "Handicap");
     this.proxy.AddDelegate(PacketType.GenericMessage, Direction.Outgoing, new PacketDelegate(OutAutoPilot));
     //this.proxy.AddDelegate(PacketType.GenericMessage, Direction.Incoming, new PacketDelegate(OutAutoPilot));
     this.proxy.AddDelegate(PacketType.ScriptDialogReply, Direction.Outgoing, new PacketDelegate(OutDialogFromViewer));
     this.proxy.AddDelegate(PacketType.ChatFromViewer, Direction.Outgoing, new PacketDelegate(OutChatFromViewerHandler));
     //this.proxy.AddDelegate(PacketType.ImprovedInstantMessage, Direction.Outgoing, new PacketDelegate(SendingIM));
 }
Пример #2
0
 public HandicapPlugin(PubComb plug)
 {
     //formthread = new Thread(new ThreadStart(delegate()
     //{
     form = new HandiForm1(this);
     //    Application.Run(form);
     //}));
     //formthread.SetApartmentState(ApartmentState.STA);
     //formthread.Start();
     plugin     = plug;
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     //plug.tabform.addATab(form, "Handicap");
     this.proxy.AddDelegate(PacketType.GenericMessage, Direction.Outgoing, new PacketDelegate(OutAutoPilot));
     //this.proxy.AddDelegate(PacketType.GenericMessage, Direction.Incoming, new PacketDelegate(OutAutoPilot));
     this.proxy.AddDelegate(PacketType.ScriptDialogReply, Direction.Outgoing, new PacketDelegate(OutDialogFromViewer));
     this.proxy.AddDelegate(PacketType.ChatFromViewer, Direction.Outgoing, new PacketDelegate(OutChatFromViewerHandler));
     //this.proxy.AddDelegate(PacketType.ImprovedInstantMessage, Direction.Outgoing, new PacketDelegate(SendingIM));
 }