修复读写bug

This commit is contained in:
2021-12-20 18:34:41 +08:00
parent f7306314d5
commit 000203f049
8 changed files with 226 additions and 87 deletions

View File

@ -34,9 +34,23 @@ namespace mainProgram
}
}
public event transferProjectManagerDelegate TransferEvent;//申明事件
private void OpenProjectPathBtn_Click(object sender, EventArgs e)
{
string projectPath = ProjectPathTextBox.Text;
if (projectPath != null && projectPath.Length == 0)
{
MessageBox.Show(this, "工程路径不能为空", "提示");
return;
}
ProjectManager projectManager = new ProjectManager(projectPath);
projectManager.OpenProject(projectPath);
TransferEvent(projectManager);//触发事件
MessageBox.Show(this, "工程打开成功!", "提示");
Close();//打开工程完成后,关闭窗口
}
private void CancelBtn_Click(object sender, EventArgs e)