UI rendberakása
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
using Android.DeviceLock;
|
||||
using WorkFlowCheck.Common.DTO;
|
||||
using WorkFlowCheck.MAUI.Pages.Security;
|
||||
using WorkFlowCheck.MAUI.Services.Interfaces;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Pages.BaseStock;
|
||||
|
||||
public partial class BaseStockPage : ContentPage
|
||||
{
|
||||
private IUserService _userService;
|
||||
private UserDTO _currentUser;
|
||||
|
||||
public BaseStockPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
_userService = MauiProgram.ServiceProvider.GetRequiredService<IUserService>();
|
||||
}
|
||||
private void SetInfo()
|
||||
{
|
||||
_currentUser = _userService.GetCurrentUser();
|
||||
DeviceId.Text = _userService.DeviceId;
|
||||
UserInfo.Text = $"{_currentUser?.FirstName} {_currentUser?.LastName}";
|
||||
}
|
||||
|
||||
override protected async void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
SetInfo();
|
||||
}
|
||||
private async void OnButtonGetCheckPoints(object sender, EventArgs e)
|
||||
{
|
||||
//await Shell.Current.GoToAsync("//CheckPointsPage");
|
||||
|
||||
Reference in New Issue
Block a user