Esempio n. 1
0
 private static void ZoomScaleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = source as ViewRegionControl;
         control.updatePosition();
     }
     catch
     {
     }
 }
Esempio n. 2
0
 private static void ChangeCurrentShape(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (source as ViewRegionControl);
         control.updatePosition();
     }
     catch
     {
     }
 }
Esempio n. 3
0
 private static void IsRoiSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (d as ViewRegionControl);
         control.refreshIsSelected((bool)e.NewValue);
     }
     catch
     {
     }
 }
Esempio n. 4
0
 private static void ChangeRoiDetails(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (source as ViewRegionControl);
         control.refreshDetails();
     }
     catch
     {
     }
 }
Esempio n. 5
0
 private static void ChangeRoiColor(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         if (e.NewValue != null)
         {
             ViewRegionControl control = (d as ViewRegionControl);
             control.roiColorChanged();
         }
     }
     catch
     {
     }
 }
Esempio n. 6
0
 private static void IsDrawingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (d as ViewRegionControl);
         if (control.CurrentShape == RoiShape.Polygon)
         {
             if ((bool)e.NewValue == false && (bool)e.OldValue == true)
             {
                 control.updatePosition();
                 control.RemoveFirstThumbSpecialEvent();
             }
         }
     }
     catch
     {
     }
 }
Esempio n. 7
0
        private static void RoisStyleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            ViewRegionControl control = (source as ViewRegionControl);

            control.updatePosition();
        }
Esempio n. 8
0
        private static void TrailPointChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ViewRegionControl control = (d as ViewRegionControl);

            control.updateDrawingTrail();
        }