private void button_Click(object sender, RoutedEventArgs e) { AddLoan addLoan = new AddLoan(); addLoan.mode = 1; addLoan.empid = empid; addLoan.Show(); }
private void edit_Click(object sender, RoutedEventArgs e) { var x = ((DMSIClass._Loan)datagridview.SelectedItem); AddLoan addLoan = new AddLoan(); addLoan.loanid = x.LoanID; addLoan.mode = 2; addLoan.empid = empid; addLoan.Show(); }