/// <summary> /// Verify and if necessary update partner data in an extract /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void VerifyAndUpdateExtract(System.Object sender, EventArgs e) { bool ChangesMade; ExtractTDSMExtractTable ExtractTable = FMainDS.MExtract; TFrmExtractMaster.VerifyAndUpdateExtract(FindForm(), ref ExtractTable, out ChangesMade); if (ChangesMade) { FPetraUtilsObject.SetChangedFlag(); MessageBox.Show(String.Format(Catalog.GetString("Verification and Update of Extract {0} was successful. \n\r" + "Please press the Save button to save the changes."), FExtractName), Catalog.GetString("Verify and Update Extract"), MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(String.Format(Catalog.GetString("Extract {0} was already up to date"), FExtractName), Catalog.GetString("Verify and Update Extract"), MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Verify and if necessary update partner data in an extract /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void VerifyAndUpdateExtract(System.Object sender, EventArgs e) { if (!WarnIfNotSingleSelection(Catalog.GetString("Verify and Update Extract")) && (GetSelectedDetailRow() != null)) { TFrmExtractMaster.VerifyAndUpdateExtract(FindForm(), GetSelectedDetailRow().ExtractId); } }