alielie
2025-11-25 006c98e5650b530e5220f279c1e803fefe69d40d
WPFProject/LoadingWindow.xaml.cs
@@ -1,5 +1,4 @@
using HMI.Base;
using HMI.Core.Api;
using HMI.UI.Util;
using Panuon.WPF.UI;
using System;
@@ -85,9 +84,11 @@
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Closed -= ShutDownWhen_Closed;
            window.Show();
            this.Close();
        }
        private PanuonWindow window;
        private double total;
        private double finished;
@@ -116,9 +117,15 @@
                ShowConsole = true;
                BtnNext.Visibility = Visibility.Visible;
                MsgBoxHelper.Error(this, "加载出错,请确认");
                this.Closed += ShutDownWhen_Closed; ;
            }
        }
        private void ShutDownWhen_Closed(object sender, EventArgs e)
        {
            Application.Current.Shutdown();
        }
        public void Add(string text, bool? result)
        {
            Message = text;