可用版本1
This commit is contained in:
@ -45,16 +45,28 @@ namespace mainProgram
|
||||
}
|
||||
|
||||
ProjectManager projectManager = new ProjectManager(projectPath);
|
||||
projectManager.OpenProject();
|
||||
|
||||
TransferEvent(projectManager);//触发事件
|
||||
if(projectManager.OpenProject())
|
||||
{
|
||||
TransferEvent(projectManager);//触发事件
|
||||
|
||||
MessageBox.Show(this, "工程打开成功!", "提示");
|
||||
Close();//打开工程完成后,关闭窗口
|
||||
MessageBox.Show(this, "工程打开成功!", "提示");
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
Close();//打开工程完成后,关闭窗口
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(this, "工程打开失败!", "提示");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void CancelBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user