public void AddPrivateChatSubpage(PrivateChatSubpage page) { Widget labelWidget = CreateTabLabel(page.Node.NickName); tabLabelPages[labelWidget] = page; AppendPage(page, labelWidget); }
private void network_PrivateMessage(Network network, Node messageFrom, string messageText) { try { PrivateChatSubpage page = Gui.GetPrivateMessageWindow(messageFrom); if (page == null) { page = Gui.StartPrivateChat(network, messageFrom, false); } page.AddToChat(messageFrom, messageText); } catch (Exception ex) { LoggingService.LogError(ex); Gui.ShowErrorDialog(ex.ToString(), Gui.MainWindow.Window); } }