110,534
社区成员
发帖
与我相关
我的任务
分享
void Dialog_OnButtonClick(...)
{
parentForm.JobCompleted += this.OnParentJobCompleted;
parent.StartJob();
}
void OnParentJobCompleted(object sender, string status)
{
parentForm.JobCompleted -= this.OnParentJobCompleted;
MessageBox.Show( status );
this.Close();
}