コード例 #1
0
 protected override void InternalOnDoubleClick(MouseEventArgs e)
 {
     if (this.DataPointDoubleClick != null)
     {
         PlotChannelDataPointClickEventArgs e2 = new PlotChannelDataPointClickEventArgs(this, e.Button, this.m_MouseDownDataPointIndex);
         this.DataPointDoubleClick(this, e2);
     }
 }
コード例 #2
0
 protected override void InternalOnMouseUp(MouseEventArgs e)
 {
     base.IsMouseActive = false;
     if (this.UserCanMoveDataPoints && this.DataPointMoved != null && this.m_MouseDownDataPointIndex != -1)
     {
         double x = this[this.m_MouseDownDataPointIndex].X;
         double y = this[this.m_MouseDownDataPointIndex].Y;
         if (this.m_MouseDownDataPointX != x || this.m_MouseDownDataPointY != y)
         {
             PlotChannelDataPointMovedEventArgs e2 = new PlotChannelDataPointMovedEventArgs(this, this.m_MouseDownDataPointIndex, this.m_MouseDownDataPointX, this.m_MouseDownDataPointY, x, y);
             this.DataPointMoved(this, e2);
         }
     }
     if (this.DataPointClick != null)
     {
         PlotChannelDataPointClickEventArgs e3 = new PlotChannelDataPointClickEventArgs(this, e.Button, this.m_MouseDownDataPointIndex);
         this.DataPointClick(this, e3);
     }
 }