NohDoyeon241104 aa5928ce3e refactor: PTOP 네임스페이스/클래스 정리(Scanner→PTOP) 및 머신 PTOP 단독화
- namespace/using ILSOS_PrismaticScanner → ILSOS_PrismaticRD_PTOP (전 .cs/.xaml)
- 파일/클래스 리네임 7개: AlarmCode/AlarmManager/PAIX/EquipmentSpecificModel→_PTOP,
  RMSHandlerForScanner→ForPTOP, SettingUploadDataListForScanner→ForPTOP,
  SeqAutoRunPrismaticScanner→SeqAutoRunPrismatic, PLCControllerPrismaticScanner→PLCControllerPTOP
- PAIX_PrismaticScanner: 머신 참조만 PAIX_PTOP로 변경, WeldingCommon 공유 참조(SeqTestRun)는 보존
- XAML 3종(x:Class/clr-namespace/code-behind) 일치, csproj Compile Include 갱신
- csproj 빌드 경로 TDC→PTOP(_out_prismatic_rd_ptop)
- sln에서 Scanner/Gun/CleanLaser 제거 및 해당 머신 소스 삭제 → Machines에 PTOP만
- 분석/작업일지 문서 추가 (참고본: 정리후(빌드완) 기준)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 11:28:19 +09:00

75 lines
2.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VisionCommon;
using VisionUI;
using VisionUI.Camera;
using WeldingCommon.Utils;
using WeldingCommon.Views;
namespace ILSOS_PrismaticRD_PTOP.Views
{
/// <summary>
/// Interaction logic for UCMainAutoRun.xaml
/// </summary>
public partial class UCMainAutoRun : UserControl
{
private UCMainAutoRunViewModel _ViewModel;
public UCMainAutoRun(UCMainAutoRunViewModel viewModel)
{
InitializeComponent();
CreateAutoRunCameraView();
_ViewModel = viewModel;
DataContext = _ViewModel;
}
private void CreateAutoRunCameraView()
{
if (gridCommonAutoRunCameraView.Children.Count == 0) {
var fovInfo = VisionRecipeManager.GetFovInfos().FirstOrDefault();
if (fovInfo != null) {
var cameraView = IpViewManager.CreateCameraView(fovInfo, eDisplayType.Machine_A);
gridCommonAutoRunCameraView.Children.Add(cameraView);
}
}
}
private void WindowsFormsHost_Loaded(object sender, RoutedEventArgs e)
{
var autoPage = CommonHelper.GetMainPage().ScannerCanvasCtrlAutoPage;
autoPage.Canvas.CommandScaleToFit();
autoPage.Dock = System.Windows.Forms.DockStyle.Left;
windowsFormsHost.Child = autoPage;
}
private void uc_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
{
bool isVisible = (bool)e.NewValue;
if (isVisible == true) {
var autoPage = CommonHelper.GetMainPage().ScannerCanvasCtrlAutoPage;
autoPage.Canvas.CommandScaleToFit();
autoPage.Dock = System.Windows.Forms.DockStyle.Left;
windowsFormsHost.Child = autoPage;
// Camera Live
CameraUcManager.Instance.StartLiveAll(eDisplayType.Machine_A);
} else {
CameraUcManager.Instance.StopLiveAll();
}
}
}
}