X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FDragEventArgs.cs;h=52a8ec8dd4b6d1fbc43de15af876ca8c600da708;hb=0b3c3126ea203240ba9864ab9082c44935f32f4f;hp=edc8abb505f11d1e854208fe8000794da0dcc0df;hpb=908ff003b970485f4ada36d68bd2f056ae4268f7;p=mono.git diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragEventArgs.cs index edc8abb505f..52a8ec8dd4b 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragEventArgs.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragEventArgs.cs @@ -17,30 +17,27 @@ // 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; } }