Exemple #1
0
        public void create(string path, PrjoectType type)
        {
            var         lst = MainModel.ins.configModel.lstLastProject;
            LastProject md  = new LastProject()
            {
                name         = Path.GetFileNameWithoutExtension(path),
                path         = MainCtl.formatPath(path),
                type         = type,
                lastOpenTime = DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss")
            };
            LastProjectVM vm = new LastProjectVM(md);

            lst.Add(md);
            lstVM.Add(vm);
        }
Exemple #2
0
 public LastProjectVM(LastProject _md)
 {
     md = _md;
 }