这是自定义 winform 类的一部分:
public partial class frmFindAppointments {
public virtual void Init(int patientId, bool booleanValue) {
// will receive the patientId
}
public delegate void goToCalendarHandler();
public goToCalendarHandler goToCalendar;
}
在父窗口中,我添加了雇主的名称,当我关闭父窗口时y
,我想在子窗口中选择它。x
y
我试过了
using(frmFindAppointments frm=new frmFindAppointments()) {
frm.goToCalendar+=new frmFindAppointments.goToCalendarHandler(GoToCalendar);
frm.Init(Patient.Id, false);
frm.ShowDialog(this);
}