コード例 #1
0
ファイル: ShowPropertyLine.cs プロジェクト: SOFAgh/CADability
        private void ModifyDirectionWithMouse(IPropertyEntry sender, bool StartModifying)
        {   // wird entweder durch Menueauswahl in der GeoVectorProperty oder durch ziehen am HotSpot
            // (läuft auch über die GeoVectorProperty) ausgelöst. Die GeneralGeoVectorAction arbeitet
            // direkt über die GeoVectorProperty, so dass keine weiteren Events nötig sind.
            GeneralGeoVectorAction gva = new GeneralGeoVectorAction(sender as GeoVectorProperty, line.StartPoint, line);

            Frame.SetAction(gva);
        }
コード例 #2
0
        private void ModifyMajorAxisWithMouse(IPropertyEntry sender, bool StartModifying)
        {
            GeneralGeoVectorAction gva = new GeneralGeoVectorAction(majorAxisProperty, ellipse.Center, ellipse);

            Frame.SetAction(gva);
        }
コード例 #3
0
ファイル: Bitmap.cs プロジェクト: SOFAgh/CADability
        void OnModifyDirWidthWithMouse(IPropertyEntry sender, bool StartModifying)
        {
            GeneralGeoVectorAction gva = new GeneralGeoVectorAction(sender as GeoVectorProperty, picture.Location, picture);

            Frame.SetAction(gva);
        }
コード例 #4
0
        private void ModifyDirectionYParallelWithMouse(IPropertyEntry sender, bool StartModifying)
        {
            GeneralGeoVectorAction gva = new GeneralGeoVectorAction(sender as GeoVectorProperty, polyline.ParallelogramLocation, polyline);

            Frame.SetAction(gva);
        }