コード例 #1
0
                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));
                }
コード例 #2
0
 public LoginViewDesignerActionList(LoginViewDesigner designer) : base(designer.Component)
 {
     this._designer = designer;
 }
 public LoginViewDesignerActionList(LoginViewDesigner designer) : base(designer.Component)
 {
     this._designer = designer;
 }