Skip to content

Commit

Permalink
Notifications: fix action display name
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaidenov committed Aug 31, 2023
1 parent 709689b commit 5ad68ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notifications/Notifications/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ public MainWindow()
public void AcceptNotification(string customerId)
{
//accept handler with notification object state
MessageBox.Show(customerId, "Accepted");
}

public void RejectNotification(string customerId)
{
//reject handler with notification object state
MessageBox.Show(customerId, "Rejected");
}

public void Dispose()
Expand Down Expand Up @@ -78,8 +80,8 @@ private void OnSendNotificationClick(object sender, RoutedEventArgs e)

var actions = new List<GlueRoutingMethod>
{
new GlueRoutingMethod("AcceptNotification", Description: "Accept", Parameters: parameters),
new GlueRoutingMethod("RejectNotification", Description: "Reject")
new GlueRoutingMethod("AcceptNotification", DisplayName: "Accept", Parameters: parameters),
new GlueRoutingMethod("RejectNotification", DisplayName: "Reject")
};

var notification = new DesktopNotification(Title.Text,
Expand Down

0 comments on commit 5ad68ff

Please sign in to comment.