Example #1
0
        public delegate string AsyncInvokeFunc(string path);//与目标方法必须参数返回均相同.

        public string getFileSize(string path)
        {
            long   size = FileSystemObject.getDirectorySize(path);
            string used = FileSystemObject.ConvertSizeToShow(size);

            return(used);
        }
Example #2
0
 protected string GetSize(string size)
 {
     if (!string.IsNullOrEmpty(size))
     {
         return(FileSystemObject.ConvertSizeToShow(Convert.ToInt64(size)));
     }
     return(string.Empty);
 }
Example #3
0
        public IHtmlContent GetSize(DataRow dr)
        {
            string result = "";

            if (dr["FileType"].ToString() == "2")
            {
            }
            else
            {
                result = FileSystemObject.ConvertSizeToShow(DataConverter.CLng(dr["FileSize"]));
            }
            return(MvcHtmlString.Create(result));
        }
 protected string GetSize(string size)
 {
     return(FileSystemObject.ConvertSizeToShow((long)DataConverter.CLng(size)));
 }
Example #5
0
 public string GetFileSize()
 {
     return(FileSystemObject.ConvertSizeToShow((long)Eval("Size")));
 }