by
Roland Schumacher alias GENiALi
12. Januar 2005 -- 52
words -- 0 mal gelesen
So, now there are the category c. So here a little method.
private
string DateiGroesseSinnvoll(long_Groesse)
{
string size;
if(Size < 1024)
{
size = Groesse.ToString() + "byte";
}
elseif(Size < 1048576)
{
long temp = size / 1024L;
size = temp.ToString() + "KB";
}
elseif(Size < 1073741824)
{
long temp = size / 1048576L;
size = temp.ToString() + "MB";
}
else
{
long temp = size / 1073741824L;
size = temp.ToString() + "GB";
}
return size;
}
2d013c35-aaa8-4346-9498-5ca61fb4ac79|0|.0
Tags: