private void buttonOk_Click(object sender, EventArgs e) { if (CheckPoint(cboxPoint.SelectedItem) && CheckComment(tboxComment.Text)) { UpdatePermitComment(tboxComment.Text); Appoint.SetToPoint(database, Appoint.Unit, (Point)cboxPoint.SelectedItem, DateTime.Now, User); DialogResult = DialogResult.OK; } }
private void buttonSave_Click(object sender, EventArgs e) { if (appoint != null) { appoint.SetToPoint(database, (Unit)comboBoxUnits.SelectedItem, (Point)comboBoxPoints.SelectedItem, dateTimePickerSetting.Value, User); } if (onSaveData != null) { onSaveData(sender, e); } }