private void DoEdit(string submissionURI) { ssr = ServerCommand.LoadSubmission(submissionURI); submissionBindingSource.DataSource = ssr.Submission; inputsGrid.AutoGenerateColumns = true; inputsBindingSource.DataSource = ssr.Submission.InputsBytes.ToDataTable(); //TODO The next lines DOES NOT causes round trips to the server... customerTextBox.BindTextTo(submissionBindingSource, "Customer.Name"); formTextBox.BindTextTo(submissionBindingSource, "Form.Name"); groupTextBox.BindTextTo(submissionBindingSource, "Form.Group.Name"); emailTextBox.BindTextTo(submissionBindingSource, "Customer.Email"); dateTextBox.BindTextTo(submissionBindingSource, "Date"); ShowDialog(Program.MainForm); }
public static string SaveSubmission(SelectedSubmission.Result value) => nameof(SaveSubmission).Execute <SelectedSubmission.Result, string>(value);