예제 #1
0
        public RectangleF ToTrackRect(RectangleF rect)
        {
            var x1     = FRuler.XPosToTime(rect.X);
            var y1     = YPosToValue(rect.Y);
            var width  = FRuler.XDeltaToTime(rect.Width);
            var height = YDeltaToValue(-rect.Height);

            return(new RectangleF(x1, y1 - height, width, height));
        }
예제 #2
0
        public override void Default_MouseMove(object sender, MouseArg e)
        {
            base.Default_MouseMove(sender, e);

            MouseTimeLine.StartX = e.x;
            MouseTimeLine.EndX   = e.x;

            Ruler.MouseTimeLabel.X    = Math.Max(0, e.x - 110);
            Ruler.MouseTimeLabel.Text = Timer.TimeToString(Ruler.XPosToTime(e.x));
        }