private async void BuildList() { UnitDiary unitDiary = new UnitDiary(); Marine marine = new Marine(); DiaryList = await unitDiary.GetAll(); MarineList = await marine.GetMarines(); Marines = MarineList; UnitDiaries = DiaryList; }
private async void SetDiaries() { LastCycle = 0; RepositoryDiaries = 0; TotalTransactions = 0; IList <UnitDiary> tempDiaryList = await diary.GetAll(); RepositoryDiaries = tempDiaryList.Count; IList <Transaction> tempTransList = await transaction.GetAll(); TotalTransactions = tempTransList.Count; if (tempDiaryList.Count != 0) { LastCycle = tempDiaryList.Last().CycleNumber; } }