示例#1
0
        public DisplaySupport()
        {
            InitializeComponent();

            UserJson userJson = new UserJson();

            User = userJson.GetUsuarioJson();
        }
示例#2
0
        public DisplayEnvironment()
        {
            InitializeComponent();

            UserJson userJson = new UserJson();

            User = userJson.GetUsuarioJson();
        }
示例#3
0
        public DisplayHeritage()
        {
            InitializeComponent();

            UserJson jsonUsuario = new UserJson();

            User = jsonUsuario.GetUsuarioJson();
        }
示例#4
0
        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();
        }
示例#5
0
        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();
        }
示例#6
0
        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);
                }
            }
        }
示例#7
0
        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;
        }