Beispiel #1
0
 public AllUserList()
 {
     InitializeComponent();
     _userController = new UserController();
     _bankController = new BankController();
     _bloodGroups    = _bankController.GetBloodGroups();
 }
 public RecipientForm()
 {
     InitializeComponent();
     _userController       = new UserController();
     _recipitionController = new RecipitionController();
     _bankController       = new BankController();
     _bloodGroups          = _bankController.GetBloodGroups();
 }
 public DonationForm()
 {
     InitializeComponent();
     userController     = new UserController();
     donationController = new DonationController();
     bankController     = new BankController();
     bloodGroups        = bankController.GetBloodGroups();
 }
Beispiel #4
0
        private void PopulateBloodGroup()
        {
            List <String> bloodGroups = _bankController.GetBloodGroups();

            foreach (String bloodGroup in bloodGroups)
            {
                userBloodGroup.Items.Add(bloodGroup);
            }

            userBloodGroup.SelectedIndex = 0;
        }