개정판 684ef11c
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