예제 #1
0
        async Task ExecuteLoadGuardsCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                Guards.Clear();
                var guards = await GuardDataStore.GetMembersAsync(true);

                foreach (var guard in guards)
                {
                    Guards.Add(guard);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }