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); }
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; } }
public void OnClick(View v) { GoalUtils.StartGoalActivity(); }