/// <summary> /// Uses the grouptag GET parameter and retrieves the group metadata. /// Populates the "Group Information" section as well. /// </summary> /// <exception cref="ArgumentNullException">If the given string is null.</exception> /// <exception cref="CouldNotFindException">If the user for the given username could not be found.</exception> /// <exception cref="SQL exception">For an unknown SQL error.</exception> private void SetGroupData() { SqlController controller = new SqlController(); List<PluginDAO> DisabledPlugins = controller.GetAllDisabledGroupPlugins(_currentGroup.GroupID); List<PluginDAO> EnabledPlugins = controller.GetAllEnabledGroupPlugins(_currentGroup.GroupID); bool first = true; foreach (PluginDAO plug in DisabledPlugins) { if (!first) disabledPlugins.Text += ", "; disabledPlugins.Text += plug.Name; first = false; } first = true; foreach (PluginDAO plug in EnabledPlugins) { if (!first) enabledPlugins.Text += ", "; enabledPlugins.Text += plug.Name; first = false; } }