Beispiel #1
0
            private void AddChildDate(DateTime date)
            {
                DateTimePickerListPartItemProvider item
                    = new DateTimePickerListPartItemProvider(
                          rootProvider, this, date);

                item.Initialize();

                children.Add(item);
                childrenData [date] = item;
                AddChildProvider(item);
            }
Beispiel #2
0
            public IProviderBehavior GetListItemBehaviorRealization(AutomationPattern pattern,
                                                                    ListItemProvider prov)
            {
                DateTimePickerListPartItemProvider itemProvider
                    = (DateTimePickerListPartItemProvider)prov;

                if (pattern == SelectionItemPatternIdentifiers.Pattern)
                {
                    return(new PartListItemSelectionItemProviderBehavior(
                               itemProvider));
                }
                else if (pattern == ValuePatternIdentifiers.Pattern)
                {
                    return(new PartListItemValueProviderBehavior(itemProvider));
                }
                return(null);
            }
Beispiel #3
0
            public object GetItemPropertyValue(ListItemProvider prov, int propertyId)
            {
                DateTimePickerListPartItemProvider itemProv
                    = (DateTimePickerListPartItemProvider)prov;

                if (propertyId == AEIds.NameProperty.Id)
                {
                    return(itemProv.Text);
                }
                else if (propertyId == AEIds.HasKeyboardFocusProperty.Id)
                {
                    return((bool)rootProvider.GetPropertyValue(AEIds.HasKeyboardFocusProperty.Id) &&
                           IsItemSelected(prov));
                }
                else if (propertyId == AEIds.BoundingRectangleProperty.Id)
                {
                    return(GetProviderPropertyValue(AEIds.BoundingRectangleProperty.Id));
                }
                return(null);
            }
Beispiel #4
0
			private void AddChildDate (DateTime date)
			{
				DateTimePickerListPartItemProvider item
					= new DateTimePickerListPartItemProvider (
						rootProvider, this, date);
				item.Initialize ();

				children.Add (item);
				childrenData [date] = item;
				AddChildProvider (item);
			}