冲突处理

This commit is contained in:
sc committed 2026-05-02 12:51:34 +08:00
commit a8431a24d9
2 files changed
+9 -3

No files matched your search

+6 -2
View File
@@ -4,14 +4,18 @@ namespace SunlightAggregationTerminal;
public partial class QueryPage : ContentPage
{
// 定义一个静态的回调动作
public static Action<string>? OnScanQuery;
public QueryPage()
{
InitializeComponent();
WeakReferenceMessenger.Default.Register<string>(this, (r, scannedValue) =>
{
{
ResultEntry.Text = scannedValue;
});
});
};
}
private async void OnScanButtonClicked(object sender, EventArgs e)
{