/// <summary> /// Create a new project with the file name as the project name. /// Add all the ensembles to the project. /// If the project exist, and the same number of ensembles are in the /// project, it will return the project. /// If the project exist and there is a different number of ensembles, /// a new project will be created with file name and the date and time /// added to the end of the file name. /// </summary> /// <param name="filepath">File name to use as the project name.</param> /// <param name="ensembles">Ensembles to add to the project.</param> /// <returns>Project with ensemble data.</returns> private Project CreateProject(string filepath, Cache <long, DataSet.Ensemble> ensembles) { // Create a project or reload an old project return(_pm.CreateProject(filepath, ensembles)); }