DrawToolsRedux/GraphicsList.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Windows.Forms;
namespace DrawTools
{
/// <summary>
/// List of graphic objects
/// </summary>
[Serializable]
public class GraphicsList
{
private ArrayList graphicsList;
private bool _isDirty;
public bool Dirty
{
get
{
if (_isDirty == false)
{
foreach (DrawObject o in graphicsList)
{
if (o.Dirty)
{
_isDirty = true;
break;
}
}
}
return _isDirty;
}
set
{
foreach (DrawObject o in graphicsList)
o.Dirty = false;
_isDirty = false;
}
}
/// <summary>
/// Returns IEnumerable object which may be used for enumeration
/// of selected objects.
///
/// Note: returning IEnumerable<DrawObject> breaks CLS-compliance
/// (assembly CLSCompliant = true is removed from AssemblyInfo.cs).
/// To make this program CLS-compliant, replace
/// IEnumerable<DrawObject> with IEnumerable. This requires
/// casting to object at runtime.
/// </summary>
/// <value></value>
public IEnumerable<DrawObject> Selection
{
get
后面还有 458 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。