添加项目文件。
This commit is contained in:
1 parent
6c0af56ea9
commit
54eaa8a836
64 files changed
+3176
No files matched your search
@@ -0,0 +1,38 @@
|
||||
namespace SunlightAggregationTerminal;
|
||||
|
||||
public partial class QueryPage : ContentPage
|
||||
{
|
||||
// 定义一个静态的回调动作
|
||||
public static Action<string>? OnScanQuery;
|
||||
|
||||
public QueryPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
OnScanQuery = (result) =>
|
||||
{
|
||||
MainThread.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
ResultEntry.Text = result;
|
||||
});
|
||||
};
|
||||
}
|
||||
private async void OnScanButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
// 跳转到扫码页面
|
||||
await Navigation.PushAsync(new ScanPage(0));
|
||||
}
|
||||
|
||||
// 处理“回车/完成”按钮点击
|
||||
/* private void OnEntryCompleted()
|
||||
{
|
||||
string inputText = ResultEntry.Text;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(inputText))
|
||||
{
|
||||
// 在这里处理用户手动输入的内容
|
||||
// 例如:验证格式、跳转页面、或者搜索商品
|
||||
//DisplayAlert("提示", $"你输入了: {inputText}", "确定");
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user