public void RemovePage(ChatPage page) { if (page.Type == ChatPageType.Server) { this.UnsubscribeEvents(page.Session); } page.Dispose(); this.Items.Remove(this.Items.Where((i) => i.Page == page).FirstOrDefault()); }
public void RemovePage(ChatPage page) { if (page.Type == ChatPageType.Server) { this.UnsubscribeEvents(page.Session); } page.Dispose(); this.Items.Remove(this.Items.Where((i) => i.Page == page).FirstOrDefault()); }
public void Dispose() { _content.Dispose(); }