Added Maglink RTK GNSS receiver integration with correct BLE UUIDs and device name filtering (ML-* prefix). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
623 B
C#
30 lines
623 B
C#
using FieldLogger.ViewModels;
|
|
|
|
namespace FieldLogger.Views;
|
|
|
|
public partial class HomePage : ContentPage
|
|
{
|
|
private readonly HomeViewModel _viewModel;
|
|
private bool _initialized;
|
|
|
|
public HomePage(HomeViewModel viewModel)
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = _viewModel = viewModel;
|
|
}
|
|
|
|
protected override async void OnAppearing()
|
|
{
|
|
base.OnAppearing();
|
|
if (!_initialized)
|
|
{
|
|
_initialized = true;
|
|
await _viewModel.InitializeAsync();
|
|
}
|
|
else
|
|
{
|
|
await _viewModel.RefreshJobAsync();
|
|
}
|
|
}
|
|
}
|