Esempio n. 1
0
        public void ShowCaption(string text, bool error = false, bool show = true)
        {
            //close dialogviews
            DialogView.CloseLast();

            if (show)
            {
                gridCaption.IsVisible = true;
            }
            lblCaption.Text      = text;
            lblCaption.TextColor = error ? Visual.Foreground : Visual.CaptionForeground;
            settingsView.SetErrorMessage(text);
        }
Esempio n. 2
0
 protected override bool OnBackButtonPressed()
 {
     if (DialogView.AnyOpened)
     {
         DialogView.CloseLast();
         return(true);
     }
     else if (tabsView.AnyOpened())
     {
         tabsView.HideAll();
         return(true);
     }
     else
     {
         return(base.OnBackButtonPressed());
     }
 }