Пример #1
0
        private void picMain_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (isdown)
            {
                p2 = picMain.PointToScreen(new Point(e.X, e.Y));
                if (p1.X != p2.X || p1.Y != p2.Y)
                {
                    GDIHelper.DrawMouseSelected(p1, p2);
                }
                if (DesignEnviroment.DrawControlType != DIYReport.ReportModel.RptObjType.None)
                {
                    _DesignControls.CreateControl(DesignEnviroment.DrawControlType, p1, p2);
                }
                else
                {
                    _DesignControls.SelectCtlByMouseRect(p1, p2);
                }
                _DesignControls.ShowFocusHandle(true);

                DesignEnviroment.UICmidExecutor.ExecCommand(UICommands.SetObjProperty);
            }
            isdown          = false;
            p2              = Point.Empty;
            picMain.Capture = false;
            //	picMain.Invalidate();
        }