예제 #1
0
        //method gets triggered when tab panel is changed
        private void changeTab(object sender, EventArgs e)
        {
            clearListViews();  //clear fields from old inputs
            switch (tabControl1.SelectedIndex)
            {
            case 1:
                EmptifyCustToBankFields();
                bankUtility.GetBanks(lvCustToBank);
                break;

            case 2:
                EmptifyAccsCustField();
                bankUtility.GetBanks(lvAccsCustOfBank);
                break;

            case 3:
                EmptifyCustomerDataFields();
                customerUtility.GetCustomers(lvCustomerData);
                break;

            case 4:
                EmptifyCreateTransactionFields();
                customerUtility.GetCustomersForCreateTransaction(lvIbansTransaction, lvSearchCustomersTransactions);
                break;

            default:
                break;
            }
        }