예제 #1
0
        public Annotation(ViewBoxForm vb)
        {
            _vb = vb;

            ShapeCreatedEvt   += OnShapeCreated_Undo;
            ShapeDeletedEvt   += OnShapeDeleted_Undo;
            ShapeChangeEndEvt += OnShapeChanged_Undo;
        }
예제 #2
0
 private void OnZoomFactorChanged(ViewBoxForm viewbox)
 {
     foreach (var vb in vbxImage)
     {
         if (vb != viewbox)
         {
             vb.ZoomFactor = viewbox.ZoomFactor;
         }
     }
 }
예제 #3
0
 private void OnPanPosChanging(ViewBoxForm viewbox)
 {
     foreach (var vb in vbxImage)
     {
         if (vb != viewbox)
         {
             vb.PanPosition = viewbox.PanPosition;
         }
     }
 }
예제 #4
0
 private void OnPanPosChanged(ViewBoxForm viewbox)
 {
     foreach (var vb in _viewBoxes)
     {
         if (vb != viewbox)
         {
             vb.PanPosition = viewbox.PanPosition;
         }
     }
 }
예제 #5
0
 private void OnWinLvlChanging(ViewBoxForm viewbox)
 {
     foreach (var vb in vbxImage)
     {
         if (vb != viewbox)
         {
             vb.Win = viewbox.Win;
             vb.Lev = viewbox.Lev;
         }
     }
 }
예제 #6
0
 private void OnWinLvlChanged(ViewBoxForm viewbox)
 {
     foreach (var vb in _viewBoxes)
     {
         if (vb != viewbox)
         {
             vb.Win = viewbox.Win;
             vb.Lev = viewbox.Lev;
         }
     }
 }
예제 #7
0
 private void vbxImg_LvlChangedTextBox(ViewBoxForm vbx)
 {
     tbxLev.Text = "" + vbxImage.Lev;
 }
예제 #8
0
 private void vbxImg_WinChangedTextBox(ViewBoxForm vbx)
 {
     tbxWin.Text = "" + vbxImage.Win;
 }
예제 #9
0
 private void vbxImg_OnLvlValChanged(ViewBoxForm vbx)
 {
     hsbLev.Value = Math.Min(hsbLev.Maximum, Math.Max(hsbLev.Minimum, vbxImage.Lev));
 }
예제 #10
0
 private void vbxImg_OnWinValChanged(ViewBoxForm vbx)
 {
     hsbWin.Value = Math.Min(hsbWin.Maximum, Math.Max(hsbWin.Minimum, vbxImage.Win));
 }