2026-01-26 18:56:53 +09:00

28 lines
1.1 KiB
C#

using Aurora;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AuroraLaser.Coherent.Compact.Views
{
public class MessageUtilLaserCompact
{
public static bool ShowYesNoMessageDialogWireLaserCalib(string title, string message, stPowerModelEnable powerModelEnableInfo)
{
var _title = Application.Current.FindStrToken(title);
var _message = Application.Current.FindStrToken(message);
//var result = UCWireLaserCalibSaveDialog.Show(Application.Current.MainWindow, _title, _message, UCWireLaserCalibSaveDialog.Type.AffirmativeAndNegative);
var result = MWLaserCompactCalibSaveDialog.Show(Application.Current.MainWindow, _title, _message, MWLaserCompactCalibSaveDialog.Type.AffirmativeAndNegative, powerModelEnableInfo);
if (result == MWLaserCompactCalibSaveDialog.Result.Negative) {
return false;
}
return true;
}
public static ePowerModelCalib ResultCalibType { get => MWLaserCompactCalibSaveDialog.ResultCalibType; }
}
}