public Layer(PPDSheet sheet, IDProvider idProvider, bool isSelected) { var marks = sheet.GetSortedData().Select(m => new EditorMarkInfo(m, this)).ToArray(); var selectedMarks = new HashSet <Mark>(sheet.GetAreaData()); if (selectedMarks.Count == 0) { var selectedMark = sheet.SelectedMark; if (selectedMark == null) { SelectedMark = null; } else { SelectedMark = marks.FirstOrDefault(m => m.Mark == selectedMark); } SelectedMarks = new EditorMarkInfo[0]; } else { SelectedMarks = marks.Where(m => selectedMarks.Contains(m.Mark)).ToArray(); } Marks = marks; manager = new ChangeMarkPropertyManager(sheet, this, idProvider); IsSelected = isSelected; }
public UnassignMarkIdTask(EditorMarkInfo editorMarkInfo) : base(editorMarkInfo) { }
public RemoveMarkTask(EditorMarkInfo editorMarkInfo) : base(editorMarkInfo) { }
public ChangeMarkParameterTask(EditorMarkInfo editorMarkInfo, string key, string value) : base(editorMarkInfo) { Key = key; Value = value; }
public RemoveMarkParameterTask(EditorMarkInfo editorMarkInfo, string key) : base(editorMarkInfo) { Key = key; }
public ChangeMarkTimeTask(EditorMarkInfo editorMarkInfo, float time) : base(editorMarkInfo) { Time = time; }
public ChangeMarkTypeTask(EditorMarkInfo editorMarkInfo, MarkType markType) : base(editorMarkInfo) { MarkType = markType; }
public ChangeMarkRotationTask(EditorMarkInfo editorMarkInfo, float rotation) : base(editorMarkInfo) { Rotation = rotation; }
public ChangeMarkPositionTask(EditorMarkInfo editorMarkInfo, Vector2 position) : base(editorMarkInfo) { Position = position; }
protected TaskBase(EditorMarkInfo editorMarkInfo) { EditorMarkInfo = editorMarkInfo; }