private void lbNot_DragDrop(object sender, DragEventArgs e) { if ((sender as ListBox) == _currentDrop) { return; } JointPair item = e.Data.GetData(typeof(JointPair)) as JointPair; lbNot.Items.Add(item); lbYes.Items.Remove(item); }
public override bool Equals(object obj) { if (obj is JointPair) { JointPair jp = obj as JointPair; return(Key.Equals(jp.Key) && Value == jp.Value); } else { return(false); } }
public JoinEventArgs(JointPair jp) { Pair = jp; }