public DateTimePickerListPartItemProvider(FragmentRootControlProvider rootProvider, DateTimePickerListPartProvider provider, object objectItem) : base(rootProvider, provider, null, objectItem) { this.partProvider = provider; }
private void AddSegmentItems() { for (int i = 0; i < control.part_data.Length; i++) { DateTimePicker.PartData part_data = control.part_data [i]; FragmentControlProvider prov = null; switch (part_data.date_time_part) { case DateTimePicker.DateTimePart.Month: case DateTimePicker.DateTimePart.DayName: case DateTimePicker.DateTimePart.AMPMSpecifier: prov = new DateTimePickerListPartProvider( this, part_data, i ); break; case DateTimePicker.DateTimePart.Day: case DateTimePicker.DateTimePart.Hour: case DateTimePicker.DateTimePart.Year: case DateTimePicker.DateTimePart.Seconds: case DateTimePicker.DateTimePart.Minutes: case DateTimePicker.DateTimePart.AMPMHour: prov = new DateTimePickerSpinnerPartProvider( this, part_data, i ); break; default: // DateTimePicker.DateTimePart.Literal prov = new DateTimePickerPartProvider( this, part_data, i ); break; } prov.Initialize(); AddChildProvider(prov); children.Add(prov); } }
public DateTimePickerListPartItemProvider (FragmentRootControlProvider rootProvider, DateTimePickerListPartProvider provider, object objectItem) : base (rootProvider, provider, null, objectItem) { this.partProvider = provider; }
private void AddSegmentItems () { for (int i = 0; i < control.part_data.Length; i++) { DateTimePicker.PartData part_data = control.part_data [i]; FragmentControlProvider prov = null; switch (part_data.date_time_part) { case DateTimePicker.DateTimePart.Month: case DateTimePicker.DateTimePart.DayName: case DateTimePicker.DateTimePart.AMPMSpecifier: prov = new DateTimePickerListPartProvider ( this, part_data, i ); break; case DateTimePicker.DateTimePart.Day: case DateTimePicker.DateTimePart.Hour: case DateTimePicker.DateTimePart.Year: case DateTimePicker.DateTimePart.Seconds: case DateTimePicker.DateTimePart.Minutes: case DateTimePicker.DateTimePart.AMPMHour: prov = new DateTimePickerSpinnerPartProvider ( this, part_data, i ); break; default: // DateTimePicker.DateTimePart.Literal prov = new DateTimePickerPartProvider ( this, part_data, i ); break; } prov.Initialize (); AddChildProvider (prov); children.Add (prov); } }