Beispiel #1
0
        public SearchForm(SearchType type, AccountForm accountForm)
        {
            InitializeComponent();
            if (type == SearchType.Number)
            {
                this.searchBox.MaxLength = 6;
            }

            SearchType = type;
            accForm    = accountForm;
            accounts   = new List <Account>();
        }
Beispiel #2
0
        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));
            }
        }
Beispiel #3
0
 public Form2(AccountForm accountForm)
 {
     accForm = accountForm;
     InitializeComponent();
 }