internal void AddNewViewInfo(ViewInfo viewInfo) { if (current.viewInfo == null || current.viewInfo != viewInfo) { // Log.W(viewInfo); ViewInfoHolder n = new ViewInfoHolder(viewInfo); current.next = n; n.prev = current; current = n; } }
void SetViewFromViewInfo(ViewInfo viewInfo) { Transform = viewInfo.Transformation.Clone(); panel.Invalidate(); }
ViewInfo CurrentViewInfo() { var viewInfo = new ViewInfo { Transformation = Transform.Clone(), leftMouseButtonWasPressed = MouseButtons == MouseButtons.Left, }; return viewInfo; }
internal ViewInfoHolder(ViewInfo vi) { this.viewInfo = vi; }