示例#1
0
 private static void ZoomScaleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = source as ViewRegionControl;
         control.updatePosition();
     }
     catch
     {
     }
 }
示例#2
0
 private static void ChangeCurrentShape(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (source as ViewRegionControl);
         control.updatePosition();
     }
     catch
     {
     }
 }
示例#3
0
 private static void IsRoiSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (d as ViewRegionControl);
         control.refreshIsSelected((bool)e.NewValue);
     }
     catch
     {
     }
 }
示例#4
0
 private static void ChangeRoiDetails(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRegionControl control = (source as ViewRegionControl);
         control.refreshDetails();
     }
     catch
     {
     }
 }
示例#5
0
 private static void ChangeRoiColor(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         if (e.NewValue != null)
         {
             ViewRegionControl control = (d as ViewRegionControl);
             control.roiColorChanged();
         }
     }
     catch
     {
     }
 }
示例#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
     {
     }
 }
示例#7
0
        private static void RoisStyleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            ViewRegionControl control = (source as ViewRegionControl);

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

            control.updateDrawingTrail();
        }