コード例 #1
0
        public HomeController()
        {
            var bank = new BankAccountsList();

            if (!bankAccounts.Any())
            {
                bankAccounts = bank.BankAccounts;
            }
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            //hide some canvases when the program starts
            SignUpForm.Visibility         = Visibility.Hidden;
            created.Visibility            = Visibility.Hidden;
            transactions.Visibility       = Visibility.Hidden;
            withdrawalCanvas.Visibility   = Visibility.Hidden;
            withdrawal_Deposit.Visibility = Visibility.Hidden;
            StatementDisplay.Visibility   = Visibility.Hidden;
            transfers.Visibility          = Visibility.Hidden;
            checkBalanceCanvas.Visibility = Visibility.Hidden;


            OurAccountHolders = new List <AccountHolder>();
            allAccounts       = new BankAccountsList <string, int>();


            //when the program starts , we display some animation
        }