Merge pull request #268 from pcc/menudeactivate
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / DragEventArgs.cs
index edc8abb505f11d1e854208fe8000794da0dcc0df..52a8ec8dd4b6d1fbc43de15af876ca8c600da708 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: DragEventArgs.cs,v $
-// Revision 1.1  2004/07/09 05:21:25  pbartok
-// - Initial check-in
-//
-//
+
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class DragEventArgs : EventArgs {
-               private int             x;
-               private int             y;
-               private int             keystate;
-               private DragDropEffects allowed_effect;
-               private DragDropEffects current_effect;
-               private IDataObject     data_object;
+               internal int                    x;
+               internal int                    y;
+               internal int                    keystate;
+               internal DragDropEffects        allowed_effect;
+               internal DragDropEffects        current_effect;
+               internal IDataObject            data_object;
 
                #region Public Constructors
                public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) {
@@ -72,9 +69,7 @@ namespace System.Windows.Forms {
                        }
 
                        set {
-                               if ((value & this.allowed_effect)!=0) {
-                                       this.current_effect=value;
-                               }
+                               current_effect = value;
                        }
                }