Agent code and restructuring
This commit is contained in:
@@ -4,16 +4,16 @@ namespace Services.Website;
|
||||
|
||||
public class DialogContents
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string ConfirmButtonLabel { get; set; }
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
public string ConfirmButtonLabel { get; set; } = string.Empty;
|
||||
public EventCallback<EventArgs> OnConfirm { get; set; }
|
||||
public EventCallback<EventArgs> OnCancel { get; set; }
|
||||
}
|
||||
|
||||
public class MyDialogService : IMyDialogService
|
||||
{
|
||||
private DialogContents _dialogContents;
|
||||
private DialogContents _dialogContents = null!;
|
||||
|
||||
public bool IsVisible { get; set; }
|
||||
|
||||
@@ -24,7 +24,7 @@ public class MyDialogService : IMyDialogService
|
||||
|
||||
public void Unsubscribe(Action action)
|
||||
{
|
||||
OnChange += action;
|
||||
OnChange -= action;
|
||||
}
|
||||
|
||||
public void Show(DialogContents dialogContents)
|
||||
|
||||
Reference in New Issue
Block a user