private void buttonAppointEdit_Click(object sender, EventArgs e) { FormStart form = (FormStart)MdiParent; FormAppoint formAppoint = new FormAppoint(); formAppoint.Database = database; formAppoint.Appoint = (Appoint)bindingSourceAppoints.Current; form.AddChild(formAppoint); }
private void buttonNextStep_Click(object sender, EventArgs e) { Appoints appoints = (Appoints)bindingSourceAppoints.DataSource; FormStart form = (FormStart)MdiParent; FormSetToPoint formAppoint = new FormSetToPoint(); formAppoint.Database = database; formAppoint.Appoint = (Appoint)bindingSourceAppoints.Current; form.AddChild(formAppoint); }