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

@ -84,16 +84,13 @@ namespace mainProgram
private void SetProjectNameAndProjectPath()
{
this.Text = this.Text + "-" + getProjectName();
this.Text = this.Text + "-" + mProjectManager.ProjectName;
this.projectPath_toolStripStatusLabel.Text = this.projectPath_toolStripStatusLabel.Text + mProjectManager.ProjectPath;
}
private void ClearProjectNameAndProjectPath()
{
this.Text = this.Text + "-" + getProjectName();
this.projectPath_toolStripStatusLabel.Text = this.projectPath_toolStripStatusLabel.Text + mProjectManager.ProjectPath;
int index = this.Text.IndexOf(getProjectName());
int index = this.Text.IndexOf(mProjectManager.ProjectName);
this.Text = this.Text.Substring(0, index - 1);//index - 1还要加上一个字符“-”
int index2 = this.projectPath_toolStripStatusLabel.Text.IndexOf(mProjectManager.ProjectPath);