Aggiornati metodi async
This commit is contained in:
@@ -389,10 +389,10 @@ namespace WebWindowComplex
|
||||
/// Richiesta chiusura SENZA salvataggio (= restore prev)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoClose()
|
||||
protected Task DoClose()
|
||||
{
|
||||
editLock = false;
|
||||
await EC_OnClose.InvokeAsync(false);
|
||||
return EC_OnClose.InvokeAsync(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -519,8 +519,9 @@ namespace WebWindowComplex
|
||||
/// <summary>
|
||||
/// Metodo di reset
|
||||
/// </summary>
|
||||
protected async Task DoReset()
|
||||
protected Task DoReset()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
// Da fare
|
||||
}
|
||||
|
||||
@@ -528,11 +529,11 @@ namespace WebWindowComplex
|
||||
/// Richiesta chiusura con salvataggio
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoSave()
|
||||
protected Task DoSave()
|
||||
{
|
||||
editLock = false;
|
||||
//manca salvataggio JWD
|
||||
await EC_OnClose.InvokeAsync(true);
|
||||
return EC_OnClose.InvokeAsync(true);
|
||||
}
|
||||
|
||||
protected override void OnAfterRender(bool firstRender)
|
||||
@@ -661,7 +662,7 @@ namespace WebWindowComplex
|
||||
}
|
||||
}
|
||||
|
||||
private async Task BuildFrameDefault()
|
||||
private Task BuildFrameDefault()
|
||||
{
|
||||
// Costruisco window e setto i parametri
|
||||
Window window = new Window();
|
||||
@@ -702,7 +703,7 @@ namespace WebWindowComplex
|
||||
string jwd = JsonConvert.SerializeObject(jsonWindow);
|
||||
JsonWindow WindowFromJson = JsonConvert.DeserializeObject<JsonWindow>(jwd, new PolymorphicJsonConverter()) ?? new JsonWindow("", "", "", "");
|
||||
setCurrWindow(WindowFromJson);
|
||||
await DoPreviewSvg(true);
|
||||
return DoPreviewSvg(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1087,9 +1088,9 @@ namespace WebWindowComplex
|
||||
/// Richiesta reset dizionario Shape con action
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
private async Task ReqResetDict(DataUpdateRes args)
|
||||
private Task ReqResetDict(DataUpdateRes args)
|
||||
{
|
||||
await EC_ActionReq.InvokeAsync(args.req);
|
||||
return EC_ActionReq.InvokeAsync(args.req);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1284,10 +1285,10 @@ namespace WebWindowComplex
|
||||
/// </summary>
|
||||
/// <param name="reqFillType"> tipo di fill richiesto </param>
|
||||
/// <returns></returns>
|
||||
protected async Task ChangeAllFill(FillTypes reqFillType)
|
||||
protected Task ChangeAllFill(FillTypes reqFillType)
|
||||
{
|
||||
updateAllFill(FrameWindow, reqFillType);
|
||||
await DoPreviewSvg();
|
||||
return DoPreviewSvg();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user