⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quotainfo.cs

📁 一个ASP.NET下的中文内容管理和社区系统
💻 CS
字号:
namespace ASPNET.StarterKit.Communities {

    using System;

    //*********************************************************************
    //
    // QuotaInfo Class
    //
    // Represents community and user database quota information.
    //
    //*********************************************************************
	
	public class QuotaInfo {
	
	    int _communityQuota;
	    int _communityQuotaUsed;
	    int _userQuota;
	    int _userQuotaUsed;


        //*********************************************************************
        //
        // QuotaInfo Constructor
        //
        // Initializes the QuotaInfo class.
        //
        //*********************************************************************
	    
		public QuotaInfo(int communityQuota, int communityQuotaUsed, int userQuota, int userQuotaUsed) {
            _communityQuota = communityQuota;
            _communityQuotaUsed = communityQuotaUsed;
            _userQuota = userQuota;
            _userQuotaUsed = userQuotaUsed;
		}


        //*********************************************************************
        //
        // CommunityQuota Property
        //
        // The total database disk space that can be used by
        // images and downloads for this community.
        //
        //*********************************************************************
	    
		public int CommunityQuota {
			get	{ return _communityQuota * 1024;}
		}


        //*********************************************************************
        //
        // CommunityQuotaUsed Property
        //
        // The current total database disk space used by
        // images and downloads for this community.
        //
        //*********************************************************************
	    
		public int CommunityQuotaUsed {
			get	{ return _communityQuotaUsed;}
		}


        //*********************************************************************
        //
        // UserQuota Property
        //
        // The total database disk space that can be used by
        // images and downloads for this user.
        //
        //*********************************************************************
	    
		public int UserQuota {
			get	{ return _userQuota * 1024;}
		}


        //*********************************************************************
        //
        // UserQuotaUsed Property
        //
        // The current total database disk space used by
        // images and downloads for this user.
        //
        //*********************************************************************
	    
		public int UserQuotaUsed {
			get	{ return _userQuotaUsed;}
		}


	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -