Beispiel #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddLoanType addLoanType = new AddLoanType();

            addLoanType.mode = 1;
            addLoanType.Show();
        }
Beispiel #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var         x           = ((LoanType)datagridview.SelectedItem);
            AddLoanType addLoanType = new AddLoanType();

            addLoanType.loantypeid = x.LoanTypeID;
            addLoanType.mode       = 2;
            addLoanType.Show();
        }