using System;
using System.Threading.Tasks;

namespace AsReader251GMAUIiOSDemo
{
	public class Utility
	{
		public Utility()
		{
		}

        #region "ActivityIndicator"
        public static void LoadActivityIndicator(BaseViewModel vm, bool isLoading, string message = "")
        {
            vm.ShowToast = false;
            vm.ShowActivityIndicator = isLoading;//两个种类的indicator，这个变量代表显示1种类的
            vm.ActivityIndicatorIsRunning = isLoading;
            vm.ShowMask = isLoading;
            vm.ActivityIndicatorText = message;
        }
        #endregion
       
    }
}

