public void SetData(PermissionStorageView permission)
        {
            this._prm = permission;

            this.Text = this._prm.PermissionName + " Properties";
            this.lbName.Text = _prm.PermissionName;
        }
示例#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());
        }
        /// <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)));
        }
        /// <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));
        }
        /// <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();
        }