Files
ulapp/FieldLogger/Views/HomePage.xaml.cs
brentperteet b602b762c9 Initial commit: FieldLogger MAUI app with Maglink BLE support
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>
2026-07-06 13:46:50 -05:00

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();
}
}
}