public DisplaySupport() { InitializeComponent(); UserJson userJson = new UserJson(); User = userJson.GetUsuarioJson(); }
public DisplayEnvironment() { InitializeComponent(); UserJson userJson = new UserJson(); User = userJson.GetUsuarioJson(); }
public DisplayHeritage() { InitializeComponent(); UserJson jsonUsuario = new UserJson(); User = jsonUsuario.GetUsuarioJson(); }
public override async void Initialize(INavigationParameters parameters) { Historics = new ObservableCollection <Historic>(); UserJson = new UserJson(); CurrentUser = new User(); IconTheme = new IconTheme(); CurrentUser = UserJson.GetUsuarioJson(); await LoadAsync(); }
public override async void Initialize(INavigationParameters parameters) { CurrentUser = new User(); UserJson = new UserJson(); IconTheme = new IconTheme(); Environments = new ObservableCollection <Environment>(); Heritages = new ObservableCollection <Heritage>(); Users = new ObservableCollection <User>(); Body = true; CurrentUser = UserJson.GetUsuarioJson(); await LoadAsync(); }
public override void Initialize(INavigationParameters parameters) { Heritages = new ObservableCollection <Heritage>(); CurrentUser = new User(); UserJson = new UserJson(); IconTheme = new IconTheme(); CurrentUser = UserJson.GetUsuarioJson(); if (parameters.ContainsKey("heritages")) { ObservableCollection <Heritage> heritages = (ObservableCollection <Heritage>)parameters["heritages"]; foreach (Heritage heritage in heritages) { Heritages.Add(heritage); } } }
public override void Initialize(INavigationParameters parameters) { CurrentUser = new User(); UserJson = new UserJson(); IconTheme = new IconTheme(); Maintenance = new Maintenance(); Heritage = new Heritage(); Body = true; CurrentUser = UserJson.GetUsuarioJson(); Icone = IconTheme.IconName("tools"); if (parameters.ContainsKey("heritage")) { Heritage = (Heritage)parameters["heritage"]; } Maintenance.CompanyId = Heritage.CompanyId; Maintenance.Code = Heritage.Code; Maintenance.HeritageId = Heritage.Id; }