2026-06-05 13:44:39 +09:00

23 lines
1.0 KiB
C#

using Aurora;
using System.Windows;
namespace AuroraLaser.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; }
}
}