public MonthCondition(Context Context) { ValueListView = ((Activity)Context).FindViewById <TimeListView>(Resource.Id.MonthList); for (int Month = 1; Month < 13; Month++) { ValueList.Add(Month.ToString()); } ValueAdapter = new TimeAdapter(Context, ValueList); ValueListView.SetVisibleItemCount(3); ValueListView.Adapter = ValueAdapter; SetToNow(); ValueListView.SelectionChangeLisenter = this; }
public HourTimeCondition(Context Context) { ValueListView = ((Activity)Context).FindViewById <TimeListView>(Resource.Id.HourList); for (int Minutes = 0; Minutes < 25; Minutes++) { ValueList.Add(Minutes.ToString()); } ValueAdapter = new TimeAdapter(Context, ValueList); ValueListView.SetVisibleItemCount(3); ValueListView.Adapter = ValueAdapter; SetToNow(); ValueListView.SelectionChangeLisenter = this; }
public DayTimeCondition(Context Context, Condition condition) { this.condition = condition; ValueListView = ((Activity)Context).FindViewById <TimeListView>(Resource.Id.DayList); for (int day = 1; day < 32; day++) { ValueList.Add(day.ToString()); } ValueAdapter = new TimeAdapter(Context, ValueList); ValueListView.SetVisibleItemCount(3); ValueListView.Adapter = ValueAdapter; SetToNow(); ValueListView.SelectionChangeLisenter = this; }