Example #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>();
        }
Example #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));
            }
        }
Example #3
0
 public Form2(AccountForm accountForm)
 {
     accForm = accountForm;
     InitializeComponent();
 }