private void QuotaBrandRelEditExecuted(object sender, ExecutedRoutedEventArgs e) { int id = e.Parameter is int ? (int) e.Parameter : 0; var pd = new MoreDetail(id, ((ShortContractDetailVM) VM).CommodityId, ((ShortContractDetailVM) VM).CommodityTypeId, ((ShortContractDetailVM) VM).AllQuotaBrandRelList, ((ShortContractDetailVM) VM).AddQuotaBrandRelList, ((ShortContractDetailVM) VM).UpdateQuotaBrandRelList, PageMode.EditMode, ModuleName, ((ShortContractDetailVM) VM).SelectPricingType); pd.ShowDialog(); RefreshBrands(); }
private void Button2Click(object sender, RoutedEventArgs e) { try { if (((ShortContractDetailVM) VM).ValidateBrands()) { var pd = new MoreDetail(((ShortContractDetailVM) VM).CommodityId, ((ShortContractDetailVM) VM).CommodityTypeId, ((ShortContractDetailVM) VM).AllQuotaBrandRelList, ((ShortContractDetailVM) VM).AddQuotaBrandRelList, PageMode.AddMode, ModuleName, ((ShortContractDetailVM) VM).SelectPricingType); pd.ShowDialog(); RefreshBrands(); } } catch (Exception ex) { MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture)); } }