public void Attach(SlideView view) { this.Detach(); myView = view; if (myView != null) { myView.DataChanged += new EventHandler(this.HandleNewData); ViewData = myView.Data; Substrate = myView.LayerPanel; } }
public void Detach() { SlideView view = myView; myView = null; if (view != null) { if (view.HasLayer(this)) { view.RemoveLayer(this); } view.DataChanged -= new EventHandler(this.HandleNewData); ViewData = null; Substrate = null; } }
public ImageLayer(SlideView view) : base(view) { }
public DynamicElementsLayer(SlideView view) : base(view) { }
public InkLayer(SlideView view) : base(view) { Initialize(); }
public ScrolledSlideViewLayer(SlideView view) : base(view) { }
/// <param name="view">An initial view to attach this layer to (it takes its /// data and substrate from the view)</param> public SlideViewLayer(SlideView view) { this.Attach(view); }