示例#1
0
        protected async override Task OnInitializedAsync()
        {
            _totalMonths = 13;
            _events      = await EventDataService.GetAll();

            _shouldRender = true;
        }
示例#2
0
        protected async override Task OnInitializedAsync()
        {
            _events = await EventDataService.GetAll();

            if (EventId == 0)
            {
                Event = await EventDataService.Add(new Event());
            }
            else
            {
                Event = _events.FirstOrDefault(e => e.EventId == EventId);
            }
        }
示例#3
0
 protected async override Task OnInitializedAsync()
 {
     _events = await EventDataService.GetAll();
 }