binding name, surname and mail of user in profil view
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
54cf493fba
commit
5a255642b5
@ -1,9 +1,21 @@
|
|||||||
|
using DataPersistence;
|
||||||
|
using Model;
|
||||||
|
|
||||||
namespace Views;
|
namespace Views;
|
||||||
|
|
||||||
public partial class MyProfil : ContentPage
|
public partial class MyProfil : ContentPage
|
||||||
{
|
{
|
||||||
|
public DataManager DataMgr = (App.Current as App).DataMgr;
|
||||||
|
public User user { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
public MyProfil()
|
public MyProfil()
|
||||||
{
|
{
|
||||||
|
DataMgr = new DataManager(new Stubs());
|
||||||
|
|
||||||
|
user = DataMgr.Data[nameof(User)].Cast<User>().Last();
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
BindingContext = user;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue