Beispiel #1
0
        /// <summary>
        /// Execute LoadCommand
        /// </summary>
        /// <returns>Return the result</returns>
        private async Task ExecuteLoadCommand()
        {
            if (IsBusy)
            {
                return;
            }
            IsBusy = true;

            try
            {
                var e = await ObjectService.GetAllAsync();

                Models.Clear();

                foreach (var i in e)
                {
                    Models.Add(i);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally { IsBusy = false; }
        }
Beispiel #2
0
        /// <summary>
        /// Execute forget password command
        /// </summary>
        /// <returns>Return the result</returns>
        private async Task ExecuteForgetCommand()
        {
            if (IsBusy)
            {
                return;
            }
            IsBusy = true;

            try
            {
                var e = await ObjectService.GetAllAsync();

                //TODO
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally { IsBusy = false; }
        }