1. 优化打开关系工程时,窗口左上角显示工程名,左下角显示工程路径;

2. 工程文件存储文件个数;
This commit is contained in:
tangchao0503
2022-09-07 18:44:41 +08:00
parent 7a449b7533
commit ec35cccc21
2 changed files with 20 additions and 9 deletions

View File

@ -169,14 +169,16 @@ namespace mainProgram
public class ProjectManager
{
public ProjectManager(string xx)
public ProjectManager(string projectFile)
{
string sourceFileName = Path.GetFileName(xx);//获取文件名
mProjectFile = xx;
mProjectPath = Path.GetDirectoryName(xx);
string sourceFileName = Path.GetFileName(projectFile);//获取文件名
mProjectFile = projectFile;
mProjectPath = Path.GetDirectoryName(projectFile);
mProjectName = Path.GetFileNameWithoutExtension(projectFile);
}
private string mProjectFile;
private string mProjectName;
private string mProjectPath;
private string mMetadataPath;
@ -199,6 +201,18 @@ namespace mainProgram
}
}
public string ProjectName
{
get
{
return mProjectName;
}
set
{
mProjectName = value;
}
}
public string MetadataPath
{
get