Changeset 4445


Ignore:
Timestamp:
09/20/10 10:10:18 (9 years ago)
Author:
mkommend
Message:

Registered drag events to enable drag and drop on VariableValueViews (ticket #1155).

Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.Designer.cs

    r4435 r4445  
    5353      this.viewHost.Content = null;
    5454      this.viewHost.Dock = System.Windows.Forms.DockStyle.Fill;
     55      this.viewHost.Enabled = false;
    5556      this.viewHost.Location = new System.Drawing.Point(0, 0);
    5657      this.viewHost.Name = "viewHost";
     
    6768      this.Name = "VariableValueView";
    6869      this.Size = new System.Drawing.Size(359, 274);
     70      this.DragDrop += new System.Windows.Forms.DragEventHandler(this.VariableValueView_DragDrop);
     71      this.DragEnter += new System.Windows.Forms.DragEventHandler(this.VariableValueView_DragEnterOver);
     72      this.DragOver += new System.Windows.Forms.DragEventHandler(this.VariableValueView_DragEnterOver);
    6973      this.ResumeLayout(false);
    7074
  • trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.cs

    r4435 r4445  
    8686    }
    8787
    88     protected virtual void valuePanel_DragEnterOver(object sender, DragEventArgs e) {
     88    protected virtual void VariableValueView_DragEnterOver(object sender, DragEventArgs e) {
    8989      e.Effect = DragDropEffects.None;
    9090      Type type = e.Data.GetData("Type") as Type;
     
    9797      }
    9898    }
    99     protected virtual void valuePanel_DragDrop(object sender, DragEventArgs e) {
     99    protected virtual void VariableValueView_DragDrop(object sender, DragEventArgs e) {
    100100      if (e.Effect != DragDropEffects.None) {
    101101        IItem item = e.Data.GetData("Value") as IItem;
Note: See TracChangeset for help on using the changeset viewer.