internal void SetCurShmot(object p) { if (p is Shmot) { CurShmot = p as Shmot; } }
internal string GetImagePath(Object p) { string result = String.Empty; if (p is Shmot) { Shmot sh = p as Shmot; result = sh.PathPhoto; } return(result); }
public void ReadFromFolder(string folderPath) { foreach (string DirName in Directory.GetDirectories(folderPath)) { ShmotCategory sc = new ShmotCategory(Path.GetFileName(DirName)); CatList.Add(sc); foreach (string FileName in Directory.GetFiles(DirName)) { Shmot sh = new Shmot(FileName, sc); sc.list.Add(sh); } } }