Ejemplo n.º 1
0
        private void Refresh()
        {
            database = new FitAppDatabase(DependencyService.Get <IFileHelper>().GetLocalFilePath("fitAppDatabase.db3"));
            GoalDB gdb = database.GetGoal(_name);

            if (gdb == null)
            {
                goalValue.Text = "  None";
            }
            else
            {
                goalValue.Text = gdb.goal.ToString() + " " + gdb.unit.ToString();
            }
        }