Here are the examples of the csharp api class BrightIdeasSoftware.SimpleDropSink.Over(System.Windows.Forms.DragEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
10 Examples
0
1. Example
Project: tesvsnip
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ originalFullRowSelect = ListView.FullRowSelect; ListView.FullRowSelect = false; // Setup our drop event args block dropEventArgs = new ModelDropEventArgs(); dropEventArgs.DropSink = this; dropEventArgs.ListView = ListView; dropEventArgs.DataObject = args.Data; var olvData = args.Data as OLVDataObject; if (olvData != null) { dropEventArgs.SourceListView = olvData.ListView; dropEventArgs.SourceModels = olvData.ModelObjects; } Over(args); }
0
2. Example
Project: falloutsnip
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ originalFullRowSelect = ListView.FullRowSelect; ListView.FullRowSelect = false; // Setup our drop event args block dropEventArgs = new ModelDropEventArgs(); dropEventArgs.DropSink = this; dropEventArgs.ListView = ListView; dropEventArgs.DataObject = args.Data; var olvData = args.Data as OLVDataObject; if (olvData != null) { dropEventArgs.SourceListView = olvData.ListView; dropEventArgs.SourceModels = olvData.ModelObjects; } Over(args); }
0
3. Example
Project: MapViewer
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DragEventArgs = args; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
4. Example
Project: MapViewer
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
5. Example
Project: logwizard
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DragEventArgs = args; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
6. Example
Project: logwizard
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
7. Example
Project: Bulk-Crap-Uninstaller
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DragEventArgs = args; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
8. Example
Project: Bulk-Crap-Uninstaller
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
9. Example
Project: SquareOne
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DragEventArgs = args; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }
0
10. Example
Project: SquareOne
Source File: DropSink.cs
Source File: DropSink.cs
public override void Enter(DragEventArgs args) { //System.Diagnostics.Debug.WriteLine("Enter"); /* * When FullRowSelect is true, we have two problems: * 1) GetItemRect(ItemOnly) returns the whole row rather than just the icon/text, which messes * up our calculation of the drop rectangle. * 2) during the drag, the Timer events will not fire! This is the major problem, since without * those events we can't autoscroll. * * The first problem we can solve through coding, but the second is more difficult. * We avoid both problems by turning off FullRowSelect during the drop operation. */ this.originalFullRowSelect = this.ListView.FullRowSelect; this.ListView.FullRowSelect = false; // Setup our drop event args block this.dropEventArgs = new ModelDropEventArgs(); this.dropEventArgs.DropSink = this; this.dropEventArgs.ListView = this.ListView; this.dropEventArgs.DataObject = args.Data; OLVDataObject olvData = args.Data as OLVDataObject; if (olvData != null) { this.dropEventArgs.SourceListView = olvData.ListView; this.dropEventArgs.SourceModels = olvData.ModelObjects; } this.Over(args); }