public void CleanUp() { // client.Self.GroupChatJoined -= new EventHandler <GroupChatJoinedEventArgs>(Self_OnGroupChatJoin); client.Self.ChatSessionMemberAdded -= new EventHandler <ChatSessionMemberAddedEventArgs>(Self_OnChatSessionMemberAdded); client.Self.ChatSessionMemberLeft -= new EventHandler <ChatSessionMemberLeftEventArgs>(Self_OnChatSessionMemberLeft); client.Avatars.UUIDNameReply -= new EventHandler <UUIDNameReplyEventArgs>(Avatars_OnAvatarNames); this.instance.Config.ConfigApplied -= new EventHandler <ConfigAppliedEventArgs>(Config_ConfigApplied); textManager.CleanUp(); textManager = null; people = null; RemoveNetcomEvents(); }
public FindGroups(METAboltInstance instance, UUID queryID) { InitializeComponent(); findGroupsResults = new SafeDictionary <string, UUID>(); this.queryID = queryID; this.instance = instance; //netcom = this.instance.Netcom; client = this.instance.Client; AddClientEvents(); lvwColumnSorter = new NumericStringComparer(); lvwFindGroups.ListViewItemSorter = lvwColumnSorter; }