private void OnCreateGroupClick(object sender, EventArgs e) { var count = ADContext.GetWorkstationGroupCount(); if (count == 6) { MessageBox.Show("Group limit (6) has been reached. Please remove or consolidate groups before adding another."); return; } DialogResult addGroupResult = _appController.RunViewAddWorkstationGroup(); if (addGroupResult == DialogResult.OK) { UpdateWorkstationData(); } }