修复读写bug
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user