public void NewAccount()
        {
            Window window = GetWindow(500, 600);

            AccountFormViewModel formViewModel = new AccountFormViewModel();

            formViewModel.closeWindow = closeWindow;
            window.Content            = formViewModel;

            window.ShowDialog();
            LoadAccounts();
        }
        public void EditAccount(int id)
        {
            Account account = AccountsModel.GetAccount(id);

            Window window = GetWindow(500, 600);

            AccountFormViewModel formViewModel = new AccountFormViewModel();

            formViewModel.Id          = account.Id.Value;
            formViewModel.FirstName   = account.FirstName;
            formViewModel.LastName    = account.LastName;
            formViewModel.PhoneNumber = account.PhoneNumber;
            formViewModel.closeWindow = closeWindow;
            window.Content            = formViewModel;

            window.ShowDialog();
            LoadAccounts();
        }