public static GaganPreference Load(Context context)
        {
            if (_pref == null)
            {
                _pref = new GaganPreference(context);
            }

            return(_pref);
        }
        public GaganController(Context context)
        {
            Context      = context;
            Pref         = GaganPreference.Load(context);
            BcoreManager = new BcoreManager(Context);
            BcoreManager.BcoreConnectionChanged += (s, e) =>
            {
                if (e.IsConnected)
                {
                    IsTimerRunning = false;
                    TimerHandler   = new Handler(Looper.MainLooper);
                }
                else
                {
                    IsTimerRunning = false;
                    TimerHandler?.RemoveCallbacks(OnTimer);
                    TimerHandler = null;
                }

                BcoreConnectionChanged?.Invoke(this, e.IsConnected);
            };
        }