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(); }
/// <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>(); }
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; }
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; }
public SolutionProjectInfo(SolutionInfo solution, FiledropsFile projectfile, ProjectManager manager, FiledropsFileSystem fs) : base(projectfile, manager, fs) { this.solution = solution; }
public void initSolutionProject(FiledropsFile f, FiledropsFileSystem fs) { SolutionProjectInfo spi = new SolutionProjectInfo(this, f, Manager, fs); initSolutionProject(spi); }
public SolutionManager(FiledropsFileSystem fs, DynamicProjectFormFactory dff, Assembly assembly = null) : base(fs, dff, assembly) { this.FileSystem = fs; solutions = new Dictionary<string, SolutionInfo>(); }