Ejemplo n.º 1
0
        //------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        /// <summary>
        /// Constructor for notification event args.
        /// </summary>
        /// <param name="notificationKind">Specifies the type of the notification.</param>
        /// <param name="notificationProcessing">Specifies the order in which to process the notification.</param>
        /// <param name="displayString">A display string describing the event.</param>
        /// <param name="activityId">A unique non-localized string to identify an action or group of actions. Use this to pass additional information to the event handler.</param>
        public NotificationEventArgs(AutomationNotificationKind notificationKind,
                                     AutomationNotificationProcessing notificationProcessing,
                                     string displayString,
                                     string activityId)
            : base(AutomationElementIdentifiers.NotificationEvent)
        {
            NotificationKind       = notificationKind;
            NotificationProcessing = notificationProcessing;
            DisplayString          = displayString;
            ActivityId             = activityId;
        }
Ejemplo n.º 2
0
 public NarratorAnnouncement(
     string announcement,
     string activityId,
     AutomationNotificationKind kind,
     AutomationNotificationProcessing processing)
 {
     m_announcement = announcement;
     m_activityId   = activityId;
     m_kind         = kind;
     m_processing   = processing;
 }
Ejemplo n.º 3
0
        private AutomationNotificationProcessing GetProcessingForSeverity(InfoBarSeverity severity)
        {
            AutomationNotificationProcessing processing = AutomationNotificationProcessing.CurrentThenMostRecent;

            if (severity == InfoBarSeverity.Error ||
                severity == InfoBarSeverity.Warning)
            {
                processing = AutomationNotificationProcessing.ImportantAll;
            }

            return(processing);
        }
Ejemplo n.º 4
0
 internal static void UiaRaiseNotificationEvent(IRawElementProviderSimple provider,
                                                AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string displayString, string activityId)
 {
     CheckError(RawUiaRaiseNotificationEvent(provider, notificationKind, notificationProcessing, displayString, activityId));
 }
Ejemplo n.º 5
0
 private static extern int RawUiaRaiseNotificationEvent(IRawElementProviderSimple provider,
                                                        AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string displayString, string activityId);
Ejemplo n.º 6
0
 public bool RaiseAutomationNotification(AutomationNotificationKind notificationKind, AutomationNotificationProcessing notificationProcessing, string notificationText)
 {
     throw null;
 }
Ejemplo n.º 7
0
 public static extern HRESULT UiaRaiseNotificationEvent(
     IRawElementProviderSimple provider,
     AutomationNotificationKind notificationKind,
     AutomationNotificationProcessing notificationProcessing,
     [MarshalAs(UnmanagedType.BStr)] string displayString,
     [MarshalAs(UnmanagedType.BStr)] string activityId);
Ejemplo n.º 8
0
 public static extern int UiaRaiseNotificationEvent(
     IRawElementProviderSimple provider,
     AutomationNotificationKind notificationKind,
     AutomationNotificationProcessing notificationProcessing,
     string notificationText,
     string notificationGuid);