예제 #1
0
        private void Oscillogram_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (bSelecting == true)
            {
                if (this.oscSelectingHelper == null)
                {
                    TabPage tp = (TabPage)this.Parent;

                    this.oscSelectingHelper                   = new Oscillogram(this.pnd, this.im);
                    this.oscSelectingHelper.Location          = new Point(0, tp.AutoScrollPosition.Y);
                    this.oscSelectingHelper.Size              = new Size(320, this.Size.Height);
                    this.oscSelectingHelper.AllowSelection    = false;
                    this.oscSelectingHelper.iSectionWidth     = 35;
                    this.oscSelectingHelper.NumbersPerSection = 1;
                    this.oscSelectingHelper.AllowMarker       = true;
                    this.oscSelectingHelper.cGraphBackground  = Color.LightYellow;
                    this.Parent.Controls.Add(this.oscSelectingHelper);
                    this.oscSelectingHelper.BringToFront();

                    this.Cursor = Cursors.SizeWE;
                }

                SetSelectionLine(sender, e);
            }
        }
예제 #2
0
        private void Oscillogram_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            this.bSelecting = false;
            this.Parent.Controls.Remove(this.oscSelectingHelper);
            this.oscSelectingHelper = null;

            this.Cursor = Cursors.Default;
        }