DrawToolsRedux/Layers.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Drawing;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.Windows.Forms;

namespace DrawTools
{
	/// <summary>
	/// Collection of <see cref="Layer"/>s used to organize the drawing surface
	/// </summary>
	[Serializable]
	public class Layers : ISerializable
	{
		// Contains the list of Layers
		private ArrayList layerList;

		private bool _isDirty;

		/// <summary>
		/// Dirty is True if any graphic element in any Layer is dirty, else False
		/// </summary>
		public bool Dirty
		{
			get
			{
				if (_isDirty == false)
				{
					foreach (Layer l in layerList)
					{
						if (l.Dirty)
						{
							_isDirty = true;
							break;
						}
					}
				}
				return _isDirty;
			}
			//set
			//{
			//    foreach (Layer l in layerList)
			//        l.Dirty = false;
			//    _isDirty = false;
			//}
		}

		private const string entryCount = "LayerCount";
		private const string entryLayer = "LayerType";

		public Layers()
		{
			layerList = new ArrayList();
		}

		/// <summary>
		/// Returns the index of the Active Layer - only one Layer may be active at any one time
后面还有 239 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。