コード例 #1
0
ファイル: SolutionInfo.cs プロジェクト: 00Green27/DocUI
        public SolutionInfo(FiledropsFile solutionfile, SolutionManager manager, FiledropsFileSystem fs)
        {
            this.FileSystem = fs;
            this.Manager = manager;
            this.Solutionfile = solutionfile;
            this.Root = solutionfile.Parent;
            projects = new Dictionary<string, SolutionProjectInfo>();

            initSolutionFile();
            initSolutionProjects();
        }
コード例 #2
0
ファイル: ProjectManager.cs プロジェクト: 00Green27/DocUI
 /// <summary>
 /// Creates new ProjectManager (can act as model)
 /// </summary>
 public ProjectManager(FiledropsFileSystem fs, DynamicProjectFormFactory dff, Assembly assembly = null)
 {
     if (assembly == null)
     {
         assembly = Assembly.GetExecutingAssembly();
     }
     this.Assembly = assembly;
     this.FileSystem = fs;
     this.FormFactory = dff;
     projects = new Dictionary<string, ProjectInfo>();
 }
コード例 #3
0
ファイル: ProjectInfo.cs プロジェクト: 00Green27/DocUI
        public ProjectInfo(FiledropsFile projectfile, ProjectManager manager, FiledropsFileSystem fs)
        {
            fs.GetFileIcon = this.GetFileIcon;
            fs.GetClosedDirIcon = this.GetClosedDirIcon;
            fs.GetOpenDirIcon = this.GetOpenDirIcon;
            fs.WorkingDirectory = projectfile.Parent;

            this.FileSystem = fs;
            projectfile.FileSystem = this.FileSystem;
            projectfile.Parent.FileSystem = this.FileSystem;

            this.ProjectFile = projectfile;
            this.Root = projectfile.Parent;
            _openfiles = new Dictionary<string, ProjectLayoutDocument>();
            this.Manager = manager;
        }
コード例 #4
0
 public ExplorerDialog(bool foldersonly, FiledropsDirectory root, string title, string filter = null)
 {
     InitializeComponent();
     this.foldersonly = foldersonly;
     if (foldersonly)
     {
         ExplorerControl.ShowFoldersList = true;
         ExplorerControl.ShowFiles = false;
     }
     else
     {
         ExplorerControl.ShowFoldersList = true;
         ExplorerControl.ShowFilesTree = false;
         ExplorerControl.ShowFilesList = true;
         ExplorerControl.ExtensionFilter = filter;
         ExplorerControl.ListDisplay.MouseDoubleClick += Check_File;
     }
     this.Title = title;
     this.ExplorerControl.AddRoot(root);
     this.ExplorerControl.Confirm.Click += Confirm_Click;
     this.ExplorerControl.FileSelectBox.KeyDown += CheckName;
     this.fs = root.FileSystem;
 }
コード例 #5
0
 public SolutionProjectInfo(SolutionInfo solution, FiledropsFile projectfile, ProjectManager manager, FiledropsFileSystem fs)
     : base(projectfile, manager, fs)
 {
     this.solution = solution;
 }
コード例 #6
0
ファイル: SolutionInfo.cs プロジェクト: 00Green27/DocUI
 public void initSolutionProject(FiledropsFile f, FiledropsFileSystem fs)
 {
     SolutionProjectInfo spi = new SolutionProjectInfo(this, f, Manager, fs);
     initSolutionProject(spi);
 }
コード例 #7
0
ファイル: SolutionManager.cs プロジェクト: 00Green27/DocUI
 public SolutionManager(FiledropsFileSystem fs, DynamicProjectFormFactory dff, Assembly assembly = null)
     : base(fs, dff, assembly)
 {
     this.FileSystem = fs;
     solutions = new Dictionary<string, SolutionInfo>();
 }