void HandlerRemoveAuthorEvent(object sender,AuthorEventArgs e) { if (e.AuthorEnitiy==null) return; var firstOrDefault=MemberList.FirstOrDefault (p => p==e.AuthorEnitiy); if (firstOrDefault==null) return; firstOrDefault.IsVisible=Visibility.Visible; AuthorListBox.SelectedItem=firstOrDefault; }
private void OnRemoveAuthorEventHandler(AuthorEventArgs e) { var handler = RemoveAuthorEventHandler; if (handler != null) handler(this, e); }
private void HandlerRemoveAuthorEvent(object sender,AuthorEventArgs e) { var tagetAuthor=e.AuthorEnitiy as TreeNodeExtend; if (tagetAuthor==null) return; tagetAuthor.IsVisibility=Visibility.Visible; tagetAuthor.IsSelected=true; }