public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            loadingOverlay = new LoadingOverlay (UIScreen.MainScreen.Bounds, "Getting expenses...");

            Backend.Current.getExpenseForms (OnGetExpenseFormsSuccess, OnGetExpenseFormsFail);
            View.Add (loadingOverlay);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            loadingOverlay = new LoadingOverlay (UIScreen.MainScreen.Bounds, "Sending...");

            txtRemarks.ShouldReturn += (textField) => {
                textField.ResignFirstResponder();
                return true;
            };
        }
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear (animated);

            loadingOverlay = new LoadingOverlay (UIScreen.MainScreen.Bounds, "Logging out...");

            try {
                if(Backend.Current.isAuthenticated()) {
                    lblWelcome.Text = "Welcome " + Backend.Current.getFullName () + "!";
                } else {
                    this.PerformSegue("toLoginForm", this);
                }
            } catch (Exception ex) {
                new UIAlertView("Error", ex.Message, null, "ok", null).Show();
            }
        }
 public override void ViewWillAppear(bool animated)
 {
     base.ViewWillAppear (animated);
     loadingOverlay = new LoadingOverlay (UIScreen.MainScreen.Bounds, "Logging in...");
 }