public LyraPlugin(PubComb plug) { //formthread = new Thread(new ThreadStart(delegate() //{ // form = new LyraForm1(this); // Application.Run(form); //})); //formthread.SetApartmentState(ApartmentState.STA); //formthread.Start(); plugin = plug; form = new LyraForm1(this); //plug.tabform.addATab(form, "LYRA"); this.frame = plug.frame; this.proxy = plug.proxy; // this.brand = "Lyra"; proxy.AddDelegate(PacketType.ChatFromViewer, Direction.Outgoing, new PacketDelegate(SimChat)); proxy.AddDelegate(PacketType.AgentUpdate, Direction.Outgoing, new PacketDelegate(Age)); }