This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/MobileApps/MyDriving/MyDriving.Utils/Helpers/ProgressDialogManager.cs

35 lines
890 B
C#
Raw Normal View History

2022-11-03 20:41:13 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDriving.Utils.Helpers
{
public static class ProgressDialogManager
{
private static Acr.UserDialogs.IProgressDialog currentProgressDialog;
public static void LoadProgressDialog(string title)
{
currentProgressDialog = Acr.UserDialogs.UserDialogs.Instance.Loading(title, maskType: Acr.UserDialogs.MaskType.Clear);
}
public static void HideProgressDialog()
{
currentProgressDialog?.Hide();
}
public static void ShowProgressDialog()
{
currentProgressDialog?.Show();
}
public static void DisposeProgressDialog()
{
currentProgressDialog?.Dispose();
currentProgressDialog = null;
}
}
}