日期:2014-05-17 浏览次数:20830 次
public class UFD
{//用户文件目录
public string name; //目录名
public int size; //目录大小
public string user; //所属用户
public bool isshare; //是否共享
public string creattime; //创建时间
public string changetime; //修改时间
public string readtime; //访问时间
public string locat; //文件位置
public UFD fatherUFD; //父目录
public ArrayList childFCB; //子文件集
public ArrayList childUFD; //子目录集
public UFD()
{//构造方法
this.childFCB = new ArrayList();
this.childUFD = new ArrayList();
}
}
UFD root = new UFD();
UFD user1 = new UFD();
UFD user2 = new UFD();
user1.name = "thisis1";
user2.name = "thisis2";
root.childUFD[0] = user1;
root.childUFD.Add(user2);
UFD tmp = root.childUFD[0] as UFD;
MessageBox.Show(tmp.name);