public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { LoginViewDesigner.LoginViewDesignerActionList instance = (LoginViewDesigner.LoginViewDesignerActionList)context.Instance; RoleGroupCollection roleGroups = instance._designer._loginView.RoleGroups; string[] values = new string[roleGroups.Count + 2]; values[0] = "AnonymousTemplate"; values[1] = "LoggedInTemplate"; for (int i = 0; i < roleGroups.Count; i++) { values[i + 2] = LoginViewDesigner.CreateRoleGroupCaption(i, roleGroups); } return(new TypeConverter.StandardValuesCollection(values)); }
public LoginViewDesignerActionList(LoginViewDesigner designer) : base(designer.Component) { this._designer = designer; }