Exemple #1
0
 private static void ChangeRoiDetails(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         RoiAdorner roi = (source as RoiAdorner);
         roi.refreshDetails();
     }
     catch
     {
     }
 }
Exemple #2
0
 private static void ChangePenColor(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         RoiAdorner roi = (source as RoiAdorner);
         roi._penColor = (Color)e.NewValue;
         roi.DrawStaticElements();
     }
     catch
     {
     }
 }
Exemple #3
0
 private static void ChangeZoomPathPoints(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         RoiAdorner roi = (source as RoiAdorner);
         roi.ZoomPathPoints.Clear();
         foreach (Point p in (IEnumerable <Point>)e.NewValue)
         {
             roi.ZoomPathPoints.Add(p);
         }
         roi.DrawStaticZoomElements();
     }
     catch (Exception ex)
     {
         DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", "RoiAdorner.ChangeZoomPathPoints(): " + ex.Message);
     }
 }