Пример #1
0
        private void frmVideoManager_Load(object sender, EventArgs e)
        {
            folderCol = new StringCollection();
            folderCol.Add(@"root");

            //Sets initial movies listview previous directory preference to root, every time you load the program it always loads the "root" directories in listbox
            Settings.Default.DirectoryPrevious = "root";
            Settings.Default.Save();

            //Loads Directories From Object and Fill Directories Listbox
            directories = DirectoryDB.GetDirectories();
            this.FillLbxDirectoriesFromText();

            //Creates default directory on hard drive to store videos
            if (Convert.ToString(Directory.Exists(@"c:\vm_videos\")) == "False")
            {
                Directory.CreateDirectory(@"c:\vm_videos\");
            }

            //Sets width of colums based on previous changes stored in preferences
            this.lvwVideos.Columns[0].Width = this.lvwVideos.Columns[0].Width + Settings.Default.ColumnWidth;
        }
Пример #2
0
 public void Fill()
 {
     directories = DirectoryDB.GetDirectories();
 }