public static DBGroups GetInstance() { if (dBGroups == null) { dBGroups = new DBGroups(); } return(dBGroups); }
private void LoadGroups() { IEnumerable <Group> groups = DBGroups.GetInstance().GetAllGroups(); foreach (Group group in groups) { comboGroupBox.Items.Add(group); } }