private void OkButton_Click(object sender, EventArgs e) { if (ValidateTime()) { if (!TpAuthenticationManager.Instance.IsAuthenticatedWithLoginForm) return; var myAssigmentsService = ServiceManager.GetService<MyAssignmentsService>(); var timeRecords = new TimeSimpleDTO[1]; timeRecords[0] = new TimeSimpleDTO { AssignableID = assignableID, Started = StartDate, Ended = FinishDate, Description = timeDescription.Text }; try { var errors = myAssigmentsService.SubmitTime(timeRecords); } catch (SoapException) { Messenger.ShowIncorrectVersionError(); } DialogResult = DialogResult.OK; Close(); } }
private void OkButton_Click(object sender, EventArgs e) { if (ValidateTime()) { if (!TpAuthenticationManager.Instance.IsAuthenticatedWithLoginForm) { return; } var myAssigmentsService = ServiceManager.GetService <MyAssignmentsService>(); var timeRecords = new TimeSimpleDTO[1]; timeRecords[0] = new TimeSimpleDTO { AssignableID = assignableID, Started = StartDate, Ended = FinishDate, Description = timeDescription.Text }; try { var errors = myAssigmentsService.SubmitTime(timeRecords); } catch (SoapException) { Messenger.ShowIncorrectVersionError(); } DialogResult = DialogResult.OK; Close(); } }
public SubmitTimeError[] SubmitTime(TimeSimpleDTO[] times) { return new SubmitTimeError[] {}; }