private async void button8_Clicked(object sender, EventArgs e)
{
button8.IsEnabled = false;
try
{
if (!await MercatorPenguin.Dialogs.AnswerYesNo(this, $"Wil je echt een taak aanmaken voor klant {DataTable.Rows[0]["c_nom"]}?"))
return;
MercatorPenguin.Classes.EditActionRet ret = await EditAction(new MercatorPenguin.Classes.EditActionDescriptor(this, activityIndicator)
{
ActionId = "",
ActionModule = MercatorPenguin.Enums.SigEnum.CLI,
ActionIdSig = DataTable.Rows[0]["c_id"].ToString(),
ActionTempl = ".A-AF1E247"
});
if (ret != null)
await MercatorPenguin.Dialogs.Stop(this, $"De actie (id = \"{ret.ActionId}\") is aangemaakt!");
}
finally
{
button8.IsEnabled = true;
}
}