public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette, int topicId, int discussionId, bool shapeVisibility) { _scene = scene; _palette = palette; _ink = ink; _inkPalette = inkPalette; //non-NaN palette coords Canvas.SetLeft(_palette, 200); Canvas.SetTop(_palette, 200); _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId, shapeVisibility); inkPalette.Init(FinishFreeDrawing, ink); setListeners(true); }
public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette, int topicId, int discussionId) { _scene = scene; _palette = palette; _ink = ink; _inkPalette = inkPalette; //non-NaN palette coords Canvas.SetLeft(_palette, 200); Canvas.SetTop(_palette, 200); _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId); _doc.VolatileCtx.localCursorChanged += localCursorChanged; _ink.OnInkChanged += OnLocalInkChanged; inkPalette.Init(finishFreeDrawing); setListeners(true); }