Ejemplo n.º 1
0
        public void SetData(PermissionStorageView permission)
        {
            this._prm = permission;

            this.Text = this._prm.PermissionName + " Properties";
            this.lbName.Text = _prm.PermissionName;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Convert a Permission array into a PermissionStorageView array.
        /// <seealso cref="Permission"/>
        /// </summary>
        /// <param name="permissions">The Permission array to be converted</param>
        /// <returns>A new array of PermissionStorageView values.</returns>
        public static PermissionStorageView[] GetPermissionStorageView(Permission[] permissions)
        {
            List <PermissionStorageView> result = new List <PermissionStorageView>();

            foreach (Permission permission in permissions)
            {
                PermissionStorageView storageView = new PermissionStorageView(permission);
                result.Add(storageView);
            }

            return(result.ToArray());
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Convert a Permission array into a PermissionStorageView array.
        /// <seealso cref="Permission"/>
        /// </summary>
        /// <param name="permissions">The Permission array to be converted</param>
        /// <returns>A new array of PermissionStorageView values.</returns>
        public static PermissionStorageView[] GetPermissionStorageView(Permission[] permissions)
        {
            ArrayList result = new ArrayList();

            foreach (Permission permission in permissions)
            {
                PermissionStorageView storageView = new PermissionStorageView(permission);

                result.Add(storageView);
            }

            return((PermissionStorageView[])result.ToArray(typeof(PermissionStorageView)));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Convert a Permission array into a PermissionStorageView array.
        /// <seealso cref="Permission"/>
        /// </summary>
        /// <param name="permissions">The Permission array to be converted</param>
        /// <returns>A new array of PermissionStorageView values.</returns>
        public static PermissionStorageView[] GetPermissionStorageView(Permission[] permissions)
        {
            ArrayList result = new ArrayList();

            foreach(Permission permission in permissions)
            {
                PermissionStorageView storageView = new PermissionStorageView(permission);

                result.Add(storageView);
            }

            return (PermissionStorageView[])result.ToArray(typeof(PermissionStorageView));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Convert a Permission array into a PermissionStorageView array.
        /// <seealso cref="Permission"/>
        /// </summary>
        /// <param name="permissions">The Permission array to be converted</param>
        /// <returns>A new array of PermissionStorageView values.</returns>
        public static PermissionStorageView[] GetPermissionStorageView(Permission[] permissions)
        {
            List<PermissionStorageView> result = new List<PermissionStorageView>();

            foreach(Permission permission in permissions)
            {
                PermissionStorageView storageView = new PermissionStorageView(permission);
                result.Add(storageView);
            }

            return result.ToArray();
        }