Exemplo n.º 1
0
        private static void On_SelectionBrush_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

            if (dh != null)
            {
                UpdatePlot();
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
        private static void On_GeometryToCreate_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SimpleCAD dh = d as SimpleCAD;

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

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

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