Esempio n. 1
0
        private async void BuildLists()
        {
            Arucs            = await new Database().GetArucs();
            Years            = await new Database().GetYears();
            CurrentArucs     = Arucs;
            CurrentYears     = Years;
            AppSettings.Aruc = Arucs.FirstOrDefault();
            AppSettings.Year = DateTime.Now.Year;
            CurrentAruc      = Arucs.FirstOrDefault();
            CurrentYear      = DateTime.Now.Year;
            DiaryList        = await Diary.GetUploaded();

            MissingDiaries = DiaryList;
            BranchList     = await Diary.GetBranches();

            Branches  = BranchList;
            IsVisible = false;
        }
Esempio n. 2
0
        public async void BuildLists()
        {
            OverlayVisible = false;
            IsVisible      = true;
            Arucs          = await new Database().GetArucs();
            Years          = await new Database().GetYears();
            if (Arucs.Count != 0)
            {
                if (Years.Count != 0)
                {
                    AppSettings.Aruc = Arucs.FirstOrDefault();
                    AppSettings.Year = DateTime.Now.Year;
                    CurrentArucs     = Arucs;
                    CurrentYears     = Years;
                    CurrentAruc      = Arucs.First();
                    CurrentYear      = DateTime.Now.Year;
                    IList <Marine> tempMarinelist = await marine.GetMarines();

                    TotalMarines = tempMarinelist.Count;
                    IList <User> tempUserList = await user.GetUsers();
                }
            }
            isVisible = false;
        }