public void AddPlan(POJO.Plan plan) { DateTime dt = Convert.ToDateTime(plan.date); var dtStr = dt.ToString("yyyy-MM-dd"); if (allPlan.ContainsKey(dtStr)) { allPlan[dtStr].Add(plan); } else { allPlan.Add(dtStr, new List <POJO.Plan>()); allPlan[dtStr].Add(plan); } }
public void Init(POJO.Plan plan) { this.plan = plan; isInit = true; UpdateView(); }