冲突处理

This commit is contained in:
sc committed 2026-05-02 12:52:08 +08:00
commit b9c2d9fb2d
2 files changed
+9 -4

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)
{
+3 -2
View File
@@ -7,14 +7,15 @@ namespace SunlightAggregationTerminal.View;
public partial class LogPage : ContentPage
{
public static Action<string>? OnScanProfile;
public LogPage()
{
InitializeComponent();
WeakReferenceMessenger.Default.Register<string>(this, (r, scannedValue) =>
{
Enterprise.Text = scannedValue;
});
Enterprise.Text = scannedValue;
});
}
private void OnScanButtonClicked(object sender, EventArgs e)