Example #1
0
        public async void ViewTask(object sender, EventArgs args)
        {
            if (GlobalVariables.username != "Guest")
            {
                try {
                    JsonTask ReturnedTask = await connection.GetTaskData();

                    if (ReturnedTask.dueDate == "NA")
                    {
                        Status.Text = "No set Task";
                    }

                    else
                    {
                        Navigation.PushAsync(new ViewTask(ReturnedTask));
                    };
                }

                catch { Status.Text = "No set Task"; };
            }
        }