Esempio n. 1
0
        /// <summary>
        ///     Initialize a new instance of the <see cref="SystemImageUpdatedEventArgs" /> class.
        /// </summary>
        /// <param name="changeNotify">Change notificaiton information.</param>
        internal SystemImageUpdatedEventArgs(ShellChangeNotify changeNotify)
            : base(changeNotify)
        {
            Contract.Requires <ArgumentNullException>(changeNotify != null);

            ImageIndex = changeNotify.ImageIndex;
        }
        /// <summary>
        ///     Initialize a new instance of the <see cref="ShellNotificationEventArgs" /> class.
        /// </summary>
        /// <param name="changeNotify">Shell change notification information.</param>
        internal ShellNotificationEventArgs(ShellChangeNotify changeNotify)
        {
            Contract.Requires <ArgumentNullException>(changeNotify != null);

            ChangeType          = changeNotify.ChangeType;
            FromSystemInterrupt = changeNotify.FromSystemInterrupt;
        }
        /// <summary>
        ///     Initialize a instance of the <see cref="ShellChangedEventArgs"/> class.
        /// </summary>
        /// <param name="changeNotify">Shell change notification information.</param>
        internal ShellChangedEventArgs(ShellChangeNotify changeNotify)
            : base(changeNotify)
        {
            Contract.Requires <ArgumentNullException>(changeNotify != null);
            Contract.Requires <ArgumentException>(changeNotify.ShellObject != null);

            this.ShellObject = changeNotify.ShellObject;
        }