GiveFeedbackEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / GiveFeedbackEvent.cs / 1305376 / GiveFeedbackEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Windows.Forms { 
 
    using System.Diagnostics;
 
    //=-------------------------------------------------------------------------=
    // GiveFeedbackEventArgs.cs
    //=-------------------------------------------------------------------------=
    // Copyright (c) 1997  Microsoft Corporation.  All Rights Reserved. 
    //
    // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
    // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
    // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
    // PARTICULAR PURPOSE. 
    //=--------------------------------------------------------------------------=

    using System;
    using System.Drawing; 
    using System.ComponentModel;
    using Microsoft.Win32; 
 

    ///  
    /// 
    ///    
    ///       Provides data for the 
    ///       event. 
    ///    
    ///  
    [System.Runtime.InteropServices.ComVisible(true)] 
    public class GiveFeedbackEventArgs : EventArgs {
        private readonly DragDropEffects effect; 
        private bool useDefaultCursors;

        /// 
        ///  
        ///    
        ///       Initializes a new instance of the  class. 
        ///     
        /// 
        public GiveFeedbackEventArgs(DragDropEffects effect, bool useDefaultCursors) { 
            this.effect = effect;
            this.useDefaultCursors = useDefaultCursors;
        }
 
        /// 
        ///  
        ///     
        ///       Gets the type of drag-and-drop operation.
        ///     
        /// 
        public DragDropEffects Effect {
            get {
                return effect; 
            }
        } 
 
        /// 
        ///  
        ///    
        ///       Gets or sets a
        ///       value
        ///       indicating whether a default pointer is used. 
        ///    
        ///  
        public bool UseDefaultCursors { 
            get {
                return useDefaultCursors; 
            }
            set {
                useDefaultCursors = value;
            } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Windows.Forms { 
 
    using System.Diagnostics;
 
    //=-------------------------------------------------------------------------=
    // GiveFeedbackEventArgs.cs
    //=-------------------------------------------------------------------------=
    // Copyright (c) 1997  Microsoft Corporation.  All Rights Reserved. 
    //
    // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
    // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
    // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
    // PARTICULAR PURPOSE. 
    //=--------------------------------------------------------------------------=

    using System;
    using System.Drawing; 
    using System.ComponentModel;
    using Microsoft.Win32; 
 

    ///  
    /// 
    ///    
    ///       Provides data for the 
    ///       event. 
    ///    
    ///  
    [System.Runtime.InteropServices.ComVisible(true)] 
    public class GiveFeedbackEventArgs : EventArgs {
        private readonly DragDropEffects effect; 
        private bool useDefaultCursors;

        /// 
        ///  
        ///    
        ///       Initializes a new instance of the  class. 
        ///     
        /// 
        public GiveFeedbackEventArgs(DragDropEffects effect, bool useDefaultCursors) { 
            this.effect = effect;
            this.useDefaultCursors = useDefaultCursors;
        }
 
        /// 
        ///  
        ///     
        ///       Gets the type of drag-and-drop operation.
        ///     
        /// 
        public DragDropEffects Effect {
            get {
                return effect; 
            }
        } 
 
        /// 
        ///  
        ///    
        ///       Gets or sets a
        ///       value
        ///       indicating whether a default pointer is used. 
        ///    
        ///  
        public bool UseDefaultCursors { 
            get {
                return useDefaultCursors; 
            }
            set {
                useDefaultCursors = value;
            } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK