public Annotation(ViewBoxForm vb) { _vb = vb; ShapeCreatedEvt += OnShapeCreated_Undo; ShapeDeletedEvt += OnShapeDeleted_Undo; ShapeChangeEndEvt += OnShapeChanged_Undo; }
private void OnZoomFactorChanged(ViewBoxForm viewbox) { foreach (var vb in vbxImage) { if (vb != viewbox) { vb.ZoomFactor = viewbox.ZoomFactor; } } }
private void OnPanPosChanging(ViewBoxForm viewbox) { foreach (var vb in vbxImage) { if (vb != viewbox) { vb.PanPosition = viewbox.PanPosition; } } }
private void OnPanPosChanged(ViewBoxForm viewbox) { foreach (var vb in _viewBoxes) { if (vb != viewbox) { vb.PanPosition = viewbox.PanPosition; } } }
private void OnWinLvlChanging(ViewBoxForm viewbox) { foreach (var vb in vbxImage) { if (vb != viewbox) { vb.Win = viewbox.Win; vb.Lev = viewbox.Lev; } } }
private void OnWinLvlChanged(ViewBoxForm viewbox) { foreach (var vb in _viewBoxes) { if (vb != viewbox) { vb.Win = viewbox.Win; vb.Lev = viewbox.Lev; } } }
private void vbxImg_LvlChangedTextBox(ViewBoxForm vbx) { tbxLev.Text = "" + vbxImage.Lev; }
private void vbxImg_WinChangedTextBox(ViewBoxForm vbx) { tbxWin.Text = "" + vbxImage.Win; }
private void vbxImg_OnLvlValChanged(ViewBoxForm vbx) { hsbLev.Value = Math.Min(hsbLev.Maximum, Math.Max(hsbLev.Minimum, vbxImage.Lev)); }
private void vbxImg_OnWinValChanged(ViewBoxForm vbx) { hsbWin.Value = Math.Min(hsbWin.Maximum, Math.Max(hsbWin.Minimum, vbxImage.Win)); }