internal static VisualContact GetVisualContact(String name, TextEdit input) { VisualContact contact = new VisualContact(name, input); contact.SendMessage.EventMouseClick += (sender, args) => { input.SetSubstrateText("Message @" + name); input.SetFocus(); }; return(contact); }
public void UncheckOthers() { IsChecked = true; List <IBaseItem> list = GetParent().GetParent().GetItems(); foreach (var item in list) { SelectionItem tmp = item as SelectionItem; if (item.Equals(GetParent()) || tmp == null) { continue; } VisualContact _current = (tmp.GetContent() as VisualContact); _current.IsChecked = false; _current.Update(); } Update(); }