Beispiel #1
0
 internal void SetCurShmot(object p)
 {
     if (p is Shmot)
     {
         CurShmot = p as Shmot;
     }
 }
Beispiel #2
0
        internal string GetImagePath(Object p)
        {
            string result = String.Empty;

            if (p is Shmot)
            {
                Shmot sh = p as Shmot;
                result = sh.PathPhoto;
            }
            return(result);
        }
Beispiel #3
0
 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);
         }
     }
 }