Example #1
0
        public MainPage()
        {
            this.InitializeComponent();
            dirNodeManager.initial();
            AddBaseSomeFiles();
            DirNode d    = dirNodeManager.GetWorkDir();
            string  name = dirNodeManager.GetWorkDir().name;

            dirNodeManager.LSNOW(d, name);
            files = dirNodeManager.GetNowFiles();
            DirNode dn = dirNodeManager.GetWorkDir();

            nowfile             = new Model.File();
            nowfile.filename    = dn.name;
            nowfile.filetype    = dn.type;
            nowfile.filesize    = dn.size;
            nowfile.filepicture = "Assets/folder.png";
        }
Example #2
0
 //选中得到当前的file名
 private void GridView_ItemClick(object sender, ItemClickEventArgs e)
 {
     nowfile = (Model.File)e.ClickedItem;
 }