프로젝트

일반

사용자정보

개정판 684ef11c

ID684ef11c766d313d568ea0db90bdb1b2ce708613
상위 a74e3cbc
하위 022d64c4

이지연이(가) 5년 이상 전에 추가함

issue #719 AutoCAD 저장 작업 중

Change-Id: I46dfcaa8fb3b15907afe75a1e17ae643bef64f3f

차이점 보기:

KCOM/Events/Move.cs
12 12
using System.Windows;
13 13
using System.Windows.Controls;
14 14
using System.Windows.Media;
15
using MarkupToPDF.Controls.Cad;
15 16

  
16 17
namespace KCOM.Events
17 18
{
......
476 477
                    }
477 478
                    break;
478 479

  
480
                #endregion
481
                #region Cad
482
                case (ControlType.InsideWhite):
483
                    {
484
                        s_point.X = Math.Min((control as InsideWhiteControl).StartPoint.X, (control as InsideWhiteControl).EndPoint.X);
485
                        s_point.Y = Math.Min((control as InsideWhiteControl).StartPoint.Y, (control as InsideWhiteControl).EndPoint.Y);
486
                        e_point.X = Math.Max((control as InsideWhiteControl).StartPoint.X, (control as InsideWhiteControl).EndPoint.X);
487
                        e_point.Y = Math.Max((control as InsideWhiteControl).StartPoint.Y, (control as InsideWhiteControl).EndPoint.Y);
488
                        rectSize = e_point - s_point;
489
                    }
490
                    break;
491
                case (ControlType.OverlapWhite):
492
                    {
493
                        s_point.X = Math.Min((control as OverlapWhiteControl).StartPoint.X, (control as OverlapWhiteControl).EndPoint.X);
494
                        s_point.Y = Math.Min((control as OverlapWhiteControl).StartPoint.Y, (control as OverlapWhiteControl).EndPoint.Y);
495
                        e_point.X = Math.Max((control as OverlapWhiteControl).StartPoint.X, (control as OverlapWhiteControl).EndPoint.X);
496
                        e_point.Y = Math.Max((control as OverlapWhiteControl).StartPoint.Y, (control as OverlapWhiteControl).EndPoint.Y);
497
                        rectSize = e_point - s_point;
498
                    }
499
                    break;
500
                case (ControlType.ClipWhite):
501
                    {
502
                        s_point.X = Math.Min((control as ClipWhiteControl).StartPoint.X, (control as ClipWhiteControl).EndPoint.X);
503
                        s_point.Y = Math.Min((control as ClipWhiteControl).StartPoint.Y, (control as ClipWhiteControl).EndPoint.Y);
504
                        e_point.X = Math.Max((control as ClipWhiteControl).StartPoint.X, (control as ClipWhiteControl).EndPoint.X);
505
                        e_point.Y = Math.Max((control as ClipWhiteControl).StartPoint.Y, (control as ClipWhiteControl).EndPoint.Y);
506
                        rectSize = e_point - s_point;
507
                    }
508
                    break;
509
                case (ControlType.Coordinate):
510
                    {
511
                        s_point.X = Math.Min((control as CoordinateControl).StartPoint.X, (control as CoordinateControl).EndPoint.X);
512
                        s_point.Y = Math.Min((control as CoordinateControl).StartPoint.Y, (control as CoordinateControl).EndPoint.Y);
513
                        e_point.X = Math.Max((control as CoordinateControl).StartPoint.X, (control as CoordinateControl).EndPoint.X);
514
                        e_point.Y = Math.Max((control as CoordinateControl).StartPoint.Y, (control as CoordinateControl).EndPoint.Y);
515
                        rectSize = e_point - s_point;
516
                    }
517
                    break;
479 518
                    #endregion
480

  
481 519
            }
482 520
            itemRect = new Rect(s_point.X, s_point.Y, rectSize.X, rectSize.Y);
483 521

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)