예제 #1
0
        public OpenFilePanel()
        {
            InitializeComponent();
            NodeDesktop = TreeView1.Nodes[0];
            NodeMyComputer = TreeView1.Nodes[1];
            NodeMyDocuments = TreeView1.Nodes[2];
            NodeSpecialFolders = TreeView1.Nodes[3];
            NodeTemplateFolders = TreeView1.Nodes[4];

            Misc = new MiscSettings(MiscSettings_PropertyChanged);
            Default = new DefaultSettings(Misc, DefaultableSettings_PropertyChanged);
            Desktop = new DesktopSettings(Default, DefaultableSettings_PropertyChanged);
            MyComputer = new MyComputerSettings(Default, DefaultableSettings_PropertyChanged);
            MyDocuments = new MyDocumentsSettings(Default, DefaultableSettings_PropertyChanged);
            SpecialFolders = new SpecialFoldersSettings(Default, DefaultableSettings_PropertyChanged);
            TemplateFolders = new TemplateFoldersSettings(Default, DefaultableSettings_PropertyChanged);
            Misc.SetCategoryPanelWidth(splitContainer1.Panel1.Width);
            Localization = new OpenFileLocalization(LocalizationSettings_PropertyChanged);
            Localization.RaisePropertyChanged("");
            FileSystemHandler = new FileSystemManager();

            ToolStripContainer1_ContentPanel_SizeChanged(this, new EventArgs());
            ShowAll();
            this.Load += new EventHandler(OpenFilePanel_Load);
        }
예제 #2
0
 internal TemplateFolderRoot(FileSystemManager parent, string name, string path, TemplateFolderDescription[] description, bool loadDirectories = false, bool loadFiles = false)  : base(parent, name, path, loadDirectories, loadFiles)
 {
     if (null != description)
         Description = description;
     else
         Description = new TemplateFolderDescription[0];
 }
예제 #3
0
 internal FileSystemInfo(FileSystemManager parent, string name, string path, bool loadDirectories = false, bool loadFiles = false)
 {
     Parent      = parent;
     Name        = name;
     Path        = path;
     Drives      = new DrvInfo[0];
     Directories = new FolderInfo[0];
     Files       = new FiInfo[0];
     if (loadDirectories)
     {
         LoadDirectories();
     }
     if (loadFiles)
     {
         LoadFiles();
     }
 }
예제 #4
0
 internal SpecialFolderRoot(FileSystemManager parent, string name, string path, bool loadDirectories = false, bool loadFiles = false) : base(parent, name, path, loadDirectories, loadFiles)
 {
 }
예제 #5
0
 internal DrvInfo(FileSystemManager parent, string name, string label, string path, DriveType type, bool isReady, bool loadDirectories = false, bool loadFiles = false) : base(parent, name, path, loadDirectories, loadFiles)
 {
     Type    = type;
     Label   = label;
     IsReady = isReady;
 }
예제 #6
0
 internal SpecialFolderRoot(FileSystemManager parent, string name, string path, bool loadDirectories = false, bool loadFiles = false) : base(parent, name, path, loadDirectories, loadFiles)
 {
 }
예제 #7
0
 internal DrvInfoRoot(FileSystemManager parent, string name, string path, bool loadDirectories = false, bool loadFiles = false) : base(parent, name, path, loadDirectories, loadFiles)
 {
     Drives = new DrvInfo[0];
 }
예제 #8
0
 internal FiInfo(FileSystemManager parent, string name, string path, long lenght) : base(parent, name, path)
 {
     Size = lenght;
 }