CRectControl.cs
(开头部分) 31KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace RuntimeAdjustControlApp
{
public partial class CRectControl : UserControl
{
private Control _current;
private Size _square;
private Rectangle _baseRect;
private Rectangle[] _squareRects;
private Rectangle[] _boundRects;
private HitDownSquare _currHitPlace;
private Point _p0;
private Point _mouseP0;
private Point _resizeMouseP0;
private Point _resizeP0;
private Rectangle _oriBounds;
private List<__CRectControl> _selectedControls;
private bool _resizeFlg = false;
private int _minWidth = 30;
private int _minHeight = 30;
private class __CRectControl {
public CRectControl Target
{
get;
set;
}
public Point StartPos {
get;
set;
}
public Rectangle OriBounds
{
get;
set;
}
}
public CRectControl()
{
InitializeComponent();
_square = new Size(8,8);
_squareRects = new Rectangle[8];
_boundRects = new Rectangle[4];
_currHitPlace = HitDownSquare.HDS_NONE;
}
public CRectControl(Control ctl) : this() {
后面还有 714 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。