private void PeriodEndButtonClick(object btn, EventArgs e) { RunPeriodEnd(CALCULATION_MODE); tbxMessage.Text = Catalog.GetString("The server returned this message:") + "\r\n\r\n" + FverificationResult.BuildVerificationResultString(); btnPeriodEnd.Visible = false; btnCancel.Text = Catalog.GetString("Done"); // reset valid dates as they may have changed: next time this object is called values are refreshed from server TLedgerSelection.ResetValidDates(FLedgerNumber); }
private static void AsyncOpEnd(IAsyncResult ar) { AsyncResult result = (AsyncResult)ar; TPeriodEnd TheForm = (TPeriodEnd)result.AsyncState; AsyncOpCaller caller = (AsyncOpCaller)result.AsyncDelegate; TheForm.FOperationResult = caller.EndInvoke(ar); TLogging.Log("AsyncOpEnd: " + TheForm.FOperationResult); // Reset valid posting dates as they will have changed. TLedgerSelection.ResetValidDates(TheForm.FLedgerNumber); TheForm.TidyUpAfterAsyncOperation(); }