public SearchForm(SearchType type, AccountForm accountForm) { InitializeComponent(); if (type == SearchType.Number) { this.searchBox.MaxLength = 6; } SearchType = type; accForm = accountForm; accounts = new List <Account>(); }
public SortForm(SortType type, AccountForm accountForm) { InitializeComponent(); _type = type; accForm = accountForm; List <Account> accounts = new List <Account>(); if (type == SortType.CreatingDate) { AddDataToTable(DateSort(accForm.list)); } else if (type == SortType.Balance) { AddDataToTable(BalanceSort(accForm.list)); } }
public Form2(AccountForm accountForm) { accForm = accountForm; InitializeComponent(); }