private void btnAdd_Click(object sender, RoutedEventArgs e) { ProductChannelPeriodPriceInfoDetail detail = new ProductChannelPeriodPriceInfoDetail(); detail.productVM = DataContext as ProductChannelVM; detail.Dialog = CPApplication.Current.CurrentPage.Context.Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResProductChannelPeriodPriceInfo.Dialog_Add, detail, (s, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { dgProductChannelPeriodPriceQueryResult.Bind(); } }, new Size(650, 350)); }
private void hyperlinkEdit_Click(object sender, RoutedEventArgs e) { dynamic item = this.dgProductChannelPeriodPriceQueryResult.SelectedItem as dynamic; if (item == null) { return; } var sysNo = Convert.ToInt32(item.SysNo); var status = item.Status; ProductChannelPeriodPriceInfoDetail detail = new ProductChannelPeriodPriceInfoDetail(); detail.SysNo = sysNo; detail.productVM = DataContext as ProductChannelVM; detail.Dialog = CPApplication.Current.CurrentPage.Context.Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResProductChannelPeriodPriceInfo.Dialog_Edit, detail, (s, args) => { if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK) { dgProductChannelPeriodPriceQueryResult.Bind(); } }, new Size(650, 350)); }