Ejemplo n.º 1
0
        private async void btnPolicy_Clicked(object sender, EventArgs e)
        {
            var policy   = BindingContext as CustPolicy;
            var genPolVM = new GenPolViewModel(policy.Department, policy.PolicyNumber);

            var genPolicyPage = new GenPolicyDetails
            {
                BindingContext = genPolVM
            };

            if (App.Current.MainPage is NavigationPage)
            {
                await(App.Current.MainPage as NavigationPage).PushAsync(genPolicyPage);
            }
        }
Ejemplo n.º 2
0
        private async void btnNotif_Clicked(object sender, EventArgs e)
        {
            var notif = BindingContext as Notification;

            if (notif.BusinessType == "G")
            {
                var genPolVM = new GenPolViewModel(notif.Department, notif.PolicyNumber);

                var genPolicyPage = new GenPolicyDetails
                {
                    BindingContext = genPolVM
                };

                if (App.Current.MainPage is NavigationPage)
                {
                    await(App.Current.MainPage as NavigationPage).PushAsync(genPolicyPage);
                }
            }
        }