public ChatTabItem(MessagingWindow parentWindow, Contact contact) { window = parentWindow; Contact = contact; Header = Contact.Nickname; tabContent = new ChatTabContent(); Content = tabContent; }
private int CListDoubleClicked(IntPtr wParam, IntPtr lParam) { IntPtr hContact = wParam; var contact = new Contact(hContact); if (MessagingWindow == null) { MessagingWindow = new MessagingWindow(this); MessagingWindow.Visibility = Visibility.Visible; } if (ContactDoubleClickedEvent != null) ContactDoubleClickedEvent(contact); return 0; }