Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public YearTimeCondition(Context Context)
 {
     ValueListView = ((Activity)Context).FindViewById <TimeListView>(Resource.Id.YearList);
     ValueList.Add(null);
     for (int ye = 2016; ye < 2030; ye++)
     {
         ValueList.Add(ye.ToString());
     }
     ValueList.Add(null);
     ValueAdapter          = new TimeAdapter(Context, ValueList);
     ValueAdapter.Loop     = false;
     ValueListView.Adapter = ValueAdapter;
     SetToNow();
     ValueListView.SelectionChangeLisenter = this;
 }