Наследование: IAutomationSource
Пример #1
0
        private void OnSelectionChanged(Accessible sender)
        {
            IElement [] newSelection = source.GetSelection();

            AutomationSource.RaisePropertyChangedEvent(element,
                                                       SelectionPattern.SelectionProperty,
                                                       oldSelection ?? new IElement [0],
                                                       newSelection ?? new IElement [0]);
            oldSelection = newSelection;
        }
Пример #2
0
        private void OnRowInserted(Accessible sender, int row, int nInserted)
        {
            int newVal = element.accessible.QueryTable().NRows;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                GridPatternIdentifiers.RowCountProperty,
                newVal - nInserted,
                newVal);
        }
Пример #3
0
        private void OnColumnDeleted(Accessible sender, int row, int nDeleted)
        {
            int newVal = element.accessible.QueryTable().NColumns;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                GridPatternIdentifiers.ColumnCountProperty,
                newVal + nDeleted,
                newVal);
        }
Пример #4
0
        private void OnPropertyChange(Accessible sender, string name, object any)
        {
            if (name != "accessible-value")
            {
                return;
            }
            double newVal = Value.CurrentValue;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                RangeValuePatternIdentifiers.ValueProperty,
                currentValue,
                newVal);
            currentValue = newVal;
        }
Пример #5
0
        private void OnTextChanged(Accessible sender, string detail, int v1, int v2, string any)
        {
            string newValue = Text.GetText();

            if (newValue == currentValue)
            {
                return;
            }

            // LAMESPEC: Client tests confirm OldValue is null.
            AutomationSource.RaisePropertyChangedEvent(element,
                                                       ValuePattern.ValueProperty,
                                                       null,
                                                       newValue);
            currentValue = newValue;
        }
Пример #6
0
		public void Initialize ()
		{
			if (automationEventHandlers != null)
				return;
			instance = this;
			Registry.Initialize (true);
			automationEventHandlers = new List<AutomationEventHandlerData> ();
			propertyEventHandlers = new List<PropertyChangedEventHandlerData> ();
			structureEventHandlers = new List<StructureChangedEventHandlerData> ();
			focusChangedHandlers = new List<FocusChangedEventHandler> ();
			Desktop.DescriptionChanged += OnDescriptionChanged;
			Desktop.NameChanged += OnNameChanged;
			Desktop.StateChanged += OnStateChanged;
			Desktop.ChildAdded += OnChildAdded;
			Desktop.ChildRemoved += OnChildRemoved;
			string [] args = new string [0];
			Gdk.Global.InitCheck (ref args);
		}
Пример #7
0
 public void Initialize()
 {
     if (automationEventHandlers != null)
     {
         return;
     }
     instance = this;
     Registry.Initialize(true);
     automationEventHandlers     = new List <AutomationEventHandlerData> ();
     propertyEventHandlers       = new List <PropertyChangedEventHandlerData> ();
     structureEventHandlers      = new List <StructureChangedEventHandlerData> ();
     focusChangedHandlers        = new List <FocusChangedEventHandler> ();
     Desktop.DescriptionChanged += OnDescriptionChanged;
     Desktop.NameChanged        += OnNameChanged;
     Desktop.StateChanged       += OnStateChanged;
     Desktop.ChildAdded         += OnChildAdded;
     Desktop.ChildRemoved       += OnChildRemoved;
     string [] args = new string [0];
     Gdk.Global.InitCheck(ref args);
 }
Пример #8
0
 private void OnTextSelectionChanged(Accessible sender)
 {
     AutomationSource.RaiseAutomationEvent(element,
                                           TextPattern.TextSelectionChangedEvent);
 }
Пример #9
0
 private void OnTextChanged(Accessible sender, string detail, int v1, int v2, object any)
 {
     AutomationSource.RaiseAutomationEvent(element,
                                           TextPattern.TextChangedEvent);
 }
Пример #10
0
		public Base ()
		{
			source = new AutomationSource ();
		}