diff --git a/VaettirNet.PixelsDice.Net/DieSender.cs b/VaettirNet.PixelsDice.Net/DieSender.cs
index 1856a9a..72d49bd 100644
--- a/VaettirNet.PixelsDice.Net/DieSender.cs
+++ b/VaettirNet.PixelsDice.Net/DieSender.cs
@@ -91,9 +91,9 @@ private void RollStateChanged(PixelsDie source, RollState state, int value, int
});
}
- private async Task SendTestRoll()
+ public void SendTestRoll()
{
- await SendRoll(new RollMessage
+ _channel.Writer.TryWrite(new RollMessage
{
Die = new()
{
diff --git a/WpfUIDice/ProxyPage.xaml b/WpfUIDice/ProxyPage.xaml
index 748f731..a645560 100644
--- a/WpfUIDice/ProxyPage.xaml
+++ b/WpfUIDice/ProxyPage.xaml
@@ -14,13 +14,15 @@
+
-
+
+
@@ -32,7 +34,28 @@
-
+
+
+
+
+
+
+
+
+
+
@@ -45,7 +68,9 @@
-
+
+
+
diff --git a/WpfUIDice/ProxyPage.xaml.cs b/WpfUIDice/ProxyPage.xaml.cs
index c98b60b..c1613e1 100644
--- a/WpfUIDice/ProxyPage.xaml.cs
+++ b/WpfUIDice/ProxyPage.xaml.cs
@@ -40,4 +40,9 @@ private void AddUrl(object sender, RoutedEventArgs e)
Dice.ProxyUrls.Add(new ProxyUrl{Url = NewUrl.Text});
NewUrl.Clear();
}
+
+ private void SendTestMessage(object sender, RoutedEventArgs e)
+ {
+ Dice.Sender.SendTestRoll();
+ }
}
\ No newline at end of file