Пример #1
0
 public AdminSeniorMembers()
 {
     InitializeComponent();
     //db = MemberDatabase.Instance;
     //db.populate();                //used to test if combo box was being populated
     db = MemberDatabase.Instance;
     updatecmbSMember();
 }
Пример #2
0
        /// <summary>
        /// This method grabs the Senior member list
        /// and populates the combo box with it
        /// </summary>
        public void updatecmbSMember()
        {
            db = MemberDatabase.Instance;

            foreach (Member m in db.Members)
            {
                if (m.GetType() == typeof(SeniorMember))
                {
                    cmbSMember.Items.Add(m);
                }
            }
        }
Пример #3
0
 public AdminJuniorMembers()
 {
     InitializeComponent();
     db = MemberDatabase.Instance;
     updatecmbJMember();
 }