@page "/dbtest"
@using TIAMSharedUI.Pages.Components
@using TIAMWebApp.Shared.Application.Interfaces
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
@using TIAM.Entities.Transfers
@using AyCode.Services.Loggers
@inject IAcLogWriterClientBase BrowserConsoleLogWriter
@inject IWizardProcessor WizardProcessor
TestPage
EulaVisible = true)">
EulaVisible2 = true)">
@code {
public TransferDestinationWizardModel myModel = new TransferDestinationWizardModel();
public TransferWizardModel myModel2 = new TransferWizardModel();
bool EulaAccepted { get; set; }
bool EulaVisible { get; set; }
bool EulaVisible2 { get; set; }
bool MessageBoxVisible { get; set; }
bool SkipEulaCheck { get; set; }
public List TransferIgnorList = new List
{
"Id",
"Price"
};
public List TransferDestinationIgnorList = new List
{
// "Latitude",
// "Longitude"
};
void TryAgainClick()
{
MessageBoxVisible = false;
}
void CancelEulaClick()
{
myModel = new TransferDestinationWizardModel();
SkipEulaCheck = true;
MessageBoxVisible = false;
EulaVisible = false;
EulaVisible2 = false;
}
void EulaPopupClosed()
{
EulaAccepted = false;
SkipEulaCheck = false;
}
void EulaPopupClosing(PopupClosingEventArgs args)
{
if (SkipEulaCheck)
return;
args.Cancel = !EulaAccepted;
MessageBoxVisible = !EulaAccepted;
}
//-----------------------------------------------------------------------------------
public async Task SubmitForm(object Result)
{
var transferDestination = await WizardProcessor.ProcessWizardAsync(Result.GetType(), Result);
BrowserConsoleLogWriter.Info($"Submitted nested form: {Result.GetType().FullName}");
}
}