Exemple #1
0
        public static DBGroups GetInstance()
        {
            if (dBGroups == null)
            {
                dBGroups = new DBGroups();
            }

            return(dBGroups);
        }
Exemple #2
0
        private void LoadGroups()
        {
            IEnumerable <Group> groups = DBGroups.GetInstance().GetAllGroups();

            foreach (Group group in groups)
            {
                comboGroupBox.Items.Add(group);
            }
        }