private void mnu_reg_Click_1(object sender, RoutedEventArgs e) { try { var frmths = new SotoheTafsili.frm_tarife_hesabe_tafsili(); frmths.ShowDialog(); grd_AccountingTafsillevelsDetails.ItemsSource = ak.AccountingTafsillevelsDetails.ToList(); } catch { throw; } }
private void mnu_edit_Click_1(object sender, RoutedEventArgs e) { try { if (grd_AccountingTafsillevelsDetails.SelectedValue == null) { throw new Exception(Localize.ex_no_record_selected); } Guid id = (grd_AccountingTafsillevelsDetails.SelectedValue as dynamic).Id; var frmths = new SotoheTafsili.frm_tarife_hesabe_tafsili(id); frmths.ShowDialog(); grd_AccountingTafsillevelsDetails.ItemsSource = ak.AccountingTafsillevelsDetails.ToList(); } catch { throw; } }