Beispiel #1
0
        private static void On_SelectionBrush_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                UpdatePlot();
            }
        }
Beispiel #2
0
        private static void On_State_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                dh.On_State_Changed(e.NewValue as SimpleCAD_State);
            }
        }
Beispiel #3
0
        private static void On_GeometryToCreate_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                dh.On_GeometryToCreate_Changed();
            }
        }
Beispiel #4
0
        private static void On_SelectedGeometry_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                dh.ResetGrips();
            }
        }
Beispiel #5
0
        private static void On_AxesTextSize_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                dh.Update_CoordinateAxes();
            }
        }
Beispiel #6
0
 public GeometryWraper(SimpleCAD owner, ICadGeometry geom)
 {
     m_owner    = owner;
     m_geometry = geom;
 }