Skip to content

Commit

Permalink
chore: update to use DialogCloseListener
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Oct 28, 2023
1 parent dab791f commit cbe28ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public string Title
set { SetProperty(ref _title, value); }
}

public event Action<IDialogResult> RequestClose;
public DialogCloseListener RequestClose { get; }

protected virtual void CloseDialog(string parameter)
{
Expand All @@ -43,7 +43,7 @@ protected virtual void CloseDialog(string parameter)

public virtual void RaiseRequestClose(IDialogResult dialogResult)
{
RequestClose?.Invoke(dialogResult);
RequestClose.Invoke(dialogResult);
}

public virtual bool CanCloseDialog()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public string Title
set { SetProperty(ref _title, value); }
}

public event Action<IDialogResult> RequestClose;
public DialogCloseListener RequestClose { get; }

protected virtual void CloseDialog(string parameter)
{
Expand All @@ -43,7 +43,7 @@ protected virtual void CloseDialog(string parameter)

public virtual void RaiseRequestClose(IDialogResult dialogResult)
{
RequestClose?.Invoke(dialogResult);
RequestClose.Invoke(dialogResult);
}

public virtual bool CanCloseDialog()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public string Title
set { SetProperty(ref _title, value); }
}

public event Action<IDialogResult> RequestClose;
public DialogCloseListener RequestClose { get; }

protected virtual void CloseDialog(string parameter)
{
Expand All @@ -43,7 +43,7 @@ protected virtual void CloseDialog(string parameter)

public virtual void RaiseRequestClose(IDialogResult dialogResult)
{
RequestClose?.Invoke(dialogResult);
RequestClose.Invoke(dialogResult);
}

public virtual bool CanCloseDialog()
Expand Down

0 comments on commit cbe28ff

Please sign in to comment.