share db
This commit is contained in:
		@@ -7,6 +7,7 @@ namespace Billing.UI
 | 
			
		||||
    public abstract class BillingPage : ContentPage
 | 
			
		||||
    {
 | 
			
		||||
        public event EventHandler Loaded;
 | 
			
		||||
        public event EventHandler Refreshed;
 | 
			
		||||
 | 
			
		||||
        private bool loaded;
 | 
			
		||||
 | 
			
		||||
@@ -16,11 +17,16 @@ namespace Billing.UI
 | 
			
		||||
            Shell.SetTabBarIsVisible(this, false);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public virtual void OnLoaded()
 | 
			
		||||
        protected virtual void OnLoaded()
 | 
			
		||||
        {
 | 
			
		||||
            Loaded?.Invoke(this, EventArgs.Empty);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected virtual void OnRefresh()
 | 
			
		||||
        {
 | 
			
		||||
            Refreshed?.Invoke(this, EventArgs.Empty);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void TriggerLoad()
 | 
			
		||||
        {
 | 
			
		||||
            if (!loaded)
 | 
			
		||||
@@ -29,5 +35,10 @@ namespace Billing.UI
 | 
			
		||||
                OnLoaded();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void TriggerRefresh()
 | 
			
		||||
        {
 | 
			
		||||
            OnRefresh();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user