@@ -471,27 +471,27 @@ private void OnMouseDown(object sender, MouseButtonEventArgs e)
471471 {
472472 if ( WindowState == WindowState . Maximized )
473473 {
474- // 최대화된 창의 크기 기준으로 비율 계산
474+ // Calculate ratio based on maximized window dimensions
475475 double maxWidth = this . ActualWidth ;
476476 double maxHeight = this . ActualHeight ;
477477 var mousePos = e . GetPosition ( this ) ;
478478 double xRatio = mousePos . X / maxWidth ;
479479 double yRatio = mousePos . Y / maxHeight ;
480480
481- // 현재 모니터 정보
481+ // Current monitor information
482482 var screen = Screen . FromHandle ( new WindowInteropHelper ( this ) . Handle ) ;
483483 var workingArea = screen . WorkingArea ;
484484 var screenLeftTop = Win32Helper . TransformPixelsToDIP ( this , workingArea . X , workingArea . Y ) ;
485485
486- // Normal로 전환
486+ // Switch to Normal state
487487 WindowState = WindowState . Normal ;
488488
489489 Dispatcher . BeginInvoke ( new Action ( ( ) =>
490490 {
491491 double normalWidth = Width ;
492492 double normalHeight = Height ;
493493
494- // 최대화된 창 크기와 Normal 창 크기 차이만큼 비율 적용
494+ // Apply ratio based on the difference between maximized and normal window sizes
495495 Left = screenLeftTop . X + ( maxWidth - normalWidth ) * xRatio ;
496496 Top = screenLeftTop . Y + ( maxHeight - normalHeight ) * yRatio ;
497497
@@ -508,7 +508,7 @@ private void OnMouseDown(object sender, MouseButtonEventArgs e)
508508 }
509509 catch ( InvalidOperationException )
510510 {
511- // 무시
511+ // Ignored - can occur if drag operation is already in progress
512512 }
513513 }
514514 }
0 commit comments