private async Task <Form> GetFormForSummary(FormSummary summary) { if (summary == null) { return(null); } return(await Store.GetFormAsync(summary.FormID)); }
private void buttonSummary_Click(object sender, EventArgs e) { SummarizeDelivery summarizeDelivery = new SummarizeDelivery(id, deliveryNoteID, dataGridViewProducts, this.dataGridViewProvenProduct); summarizeDelivery.summaryDelivery(); FormSummary formSummary = new FormSummary(deliveryNoteID, summarizeDelivery.getIncorrect(), id); formSummary.Show(); this.Hide(); }