示例#1
0
文件: Layer.cs 项目: aragoubi/Nine
        public Layer(LayerStack layerStack, Lessons.Lesson lessonModel, AbstractLayer layerModel)
        {
            this.layerStack = layerStack;
            this.lessonModel = lessonModel;
            this.layerModel = layerModel;
            Strokes = StrokeConverter.ToWindowsStrokes(layerModel.Strokes);

            if (layerModel.GetType() == typeof (QuizAnswerLayer))
            {
                DisplayChart();
            }
            else if (layerModel.GetType() == typeof (GraphicalAnswerLayer))
            {
                DisplaySaliencyMap();
            }
        }
示例#2
0
文件: Content.cs 项目: aragoubi/Nine
 public abstract void ImportLayer(AbstractLayer layer);
示例#3
0
 public override void ImportLayer(AbstractLayer layer)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public override void ImportLayer(AbstractLayer layer)
 {
     layer.UID = Guid.NewGuid().GetHashCode();
     Layers.Add(layer);
 }
示例#5
0
文件: Tag.cs 项目: aragoubi/Nine
 /// <summary>
 ///     Removes the layer. (internal as it only should be called by the AnchoredTag)
 /// </summary>
 /// <param name="l">The layer.</param>
 internal void RemoveLayer(AbstractLayer l)
 {
     ConcernedLayers.Remove(l);
 }
示例#6
0
文件: Tag.cs 项目: aragoubi/Nine
 /// <summary>
 ///     Adds the layer (internal as it only should be called by the AnchoredTag)
 /// </summary>
 /// <param name="l">The layer.</param>
 internal void AddLayer(AbstractLayer l)
 {
     ConcernedLayers.Add(l);
 }