Пример #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;
 }