111,092
社区成员




void Dialog_OnButtonClick(...)
{
parentForm.JobCompleted += this.OnParentJobCompleted;
parent.StartJob();
}
void OnParentJobCompleted(object sender, string status)
{
parentForm.JobCompleted -= this.OnParentJobCompleted;
MessageBox.Show( status );
this.Close();
}