public RetreatPlugin(PubComb plug) { form = new RetreatForm1(this); // Application.Run(form); //})); //formthread.SetApartmentState(ApartmentState.STA); //formthread.Start(); plugin = plug; this.frame = plug.frame; this.proxy = plug.proxy; this.proxy.AddDelegate(PacketType.TerminateFriendship, Direction.Incoming, new PacketDelegate(ItsOver)); this.proxy.AddDelegate(PacketType.UUIDNameReply, Direction.Incoming, new PacketDelegate(GotTheirName)); }