Example #1
0
        //MOVE TO LOGIN VIEW MODEL


        //SPINS GEAR ICON INDEFINITELY
        public async static void spinGear()
        {
            while (true)
            {
                await gearIcon.RotateTo(360, 800, Easing.Linear);

                await gearIcon.RotateTo(0, 0); // reset to initial position

                if (LoginViewModel.CheckStatus())
                {
                    return;
                }
            }
        }
Example #2
0
 public MsgPage()
 {
     //MAKE NEW HTTPCLIENT TO TALK TO PHP BACKEND
     client = new HttpClient();
     client.CancelPendingRequests();
     //this is the first page to show on launch, the login page is forced on top if login check is not valid
     if (!LoginViewModel.CheckStatus())
     {
         goToLogin();
     }
     InitializeComponent();
     nameField           = Fullname;
     messageList         = msgList;
     userImg             = userPhoto;
     this.BindingContext = this;
 }