/// <summary> /// 详细就是编辑 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void hlNewsLink_Click(object sender, RoutedEventArgs e) { dynamic item = this.QueryResultGrid.SelectedItem as dynamic; UCAddReviewScoreItem usercontrol = new UCAddReviewScoreItem(); usercontrol.SysNo = item.SysNo; usercontrol.Dialog = Window.ShowDialog(ResComment.Title_ReviewScoreItem, usercontrol, (obj, args) => { QueryResultGrid.Bind(); }); }
private void btnNewItem_Click(object sender, RoutedEventArgs e) { UCAddReviewScoreItem usercontrol = new UCAddReviewScoreItem(); usercontrol.Dialog = Window.ShowDialog(ResComment.Title_EditReviewScoreItem, usercontrol, (obj, args) => { filter = model.ConvertVM <ReviewScoreItemQueryVM, ReviewScoreItemQueryFilter>(); filterVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <ReviewScoreItemQueryFilter>(filter); QueryResultGrid.QueryCriteria = this.filter; QueryResultGrid.Bind(); }); }