Exemplo n.º 1
0
        public override Dialog OnCreateDialog(Bundle savedInstanceState)
        {
            Singleton.Instance.AddGoalView = LayoutInflater.From(Singleton.Instance.GoalActivity)
                                             .Inflate(Resource.Layout.AddGoal, null);

            Singleton.Instance.AGLinearLayout = (LinearLayout)Singleton.Instance.AddGoalView.FindViewById(Resource.Id.overallLayout);
            Singleton.Instance.AddGoalDialog  = new AlertDialog.Builder(Singleton.Instance.GoalActivity)
                                                .SetView(Singleton.Instance.AddGoalView)
                                                .SetPositiveButton("OK", new AddGoalDialogOnClickListener()).Create();

            GoalUtils.AddGoal();

            return(Singleton.Instance.AddGoalDialog);
        }
Exemplo n.º 2
0
        public void UpdateTextView()
        {
            switch (GoalTimeDao.GetGoalTime().Name)
            {
            case "Year":
                tvContent.Text = GoalUtils.GetGoalsYear();
                break;

            case "Month":
                tvContent.Text = GoalUtils.GetGoalsMonth(ID + 1);
                break;

            case "Day":
                tvContent.Text = GoalUtils.GetGoalsDay(MonthDao.GetSelectedMonth().ID, ID + 1);
                break;
            }
        }
Exemplo n.º 3
0
 public void OnClick(View v)
 {
     GoalUtils.StartGoalActivity();
 }