Example #1
0
        public Folder(String fol, VirtualFolders vf)
            : base(new DirectoryInfo(fol))
        {
            _dir = DirInfo;
            _contents = new MediaCollection { };
            _vfs = vf;

            transX = 200;
            transY = 100;

            backdropImage = "/Images/backdrop.jpg";

            title = _dir.Name;
        }
Example #2
0
        public void InitialLoad()
        {
            String conf = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) + "\\vfpath.txt";
            try
            {
                StreamReader sr = new StreamReader(conf);
                conf = sr.ReadLine();
                sr.Close();

                VirtualFolders vf = new VirtualFolders(conf);

                AddItems(vf._folders, vf._folders[0]);
            }
            catch
            {
                this.Dispatcher.Invoke(
                    System.Windows.Threading.DispatcherPriority.Normal,
                    new Action(
                        delegate()
                        {
                            Console.WriteLine("NO VF PATH?");
                            window.Close();
                        }
                    ));
            }
        }