private void GridNew_Click(object sender, RoutedEventArgs e) { MoeinAdd add = new MoeinAdd(); add.ShowDialog(); LoadGrid(); }
private void BtnEdit_Click(object sender, RoutedEventArgs e) { Guid id = Guid.Empty; if (grdLoanInsurance.SelectedValue != null) { id = (grdLoanInsurance.SelectedValue as dynamic).ID; MoeinAdd edit = new MoeinAdd(id); edit.ShowDialog(); } }