public SharedGraphicExercise(BasicLayer layer, int uid, string exerciseName, string userName, int width, int height) : base(layer, uid, exerciseName, userName) { Width = width; Height = height; }
protected SharedExercise(BasicLayer layer, int uid, string exerciseName, string userName) { UID = uid; Layer = layer; ExerciseName = exerciseName; UserName = userName; }
public override int AddLayer(string name = "", bool isRenameable = true, bool isHideable = true, bool isDeletable = true, bool isShareable = true, bool isInkable = true) { if (name == "") name = GetFallbackName(); var layer = new BasicLayer(this, name, isRenameable, isHideable, isDeletable, isShareable, isInkable); Layers.Add(layer); return layer.UID; }
public override void CollectLayer(BasicLayer layer) { var goodLayer = (QuizLayer) layer; foreach (var bullet in goodLayer.Bullets) { if (result.ContainsKey(bullet.Offset)) { result[bullet.Offset] += (bullet.Checked ? 1 : 0); } else { result.Add(bullet.Offset, (bullet.Checked ? 1 : 0)); } } }
public abstract void CollectLayer(BasicLayer layer);
public override void CollectLayer(BasicLayer layer) { throw new NotImplementedException(); }
public override void CollectLayer(BasicLayer layer) { foreach (var stroke in layer.Strokes) foreach (var point in stroke.Points) points.Add(point); }