private void btnBrandNew_Click(object sender, RoutedEventArgs e) { //类别延保添加 CategoryExtendWarrantyBrandDetail mainUC = new CategoryExtendWarrantyBrandDetail(); mainUC.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResCategoryExtendWarrantyMaintainDetail.Dialog_AddBrand, mainUC, (s, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { this.dgCategoryExtendBrandQueryResult.Bind(); } }, new Size(600, 160)); }
private void hyperlinkBrandEdit_Click(object sender, RoutedEventArgs e) { dynamic item = this.dgCategoryExtendBrandQueryResult.SelectedItem as dynamic; if (item == null) { return; } var sysNo = Convert.ToInt32(item.SysNo); //类别延保编辑 CategoryExtendWarrantyBrandDetail detail = new CategoryExtendWarrantyBrandDetail(); detail.SysNo = sysNo; detail.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResCategoryExtendWarrantyMaintainDetail.Dialog_EditCategory, detail, (s, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { this.dgCategoryExtendBrandQueryResult.Bind(); } }, new Size(600, 160)); }