private void btnOk_Click(object sender, EventArgs e) { using (WaitCursor wc = new WaitCursor()) { observation.doctorId = App.Instance.UserId; observation.time = dtpTime.Value; using (GmConnection conn = App.CreateConnection()) { ucHandbooksInfo.Save(); observation.Save(conn); } } }