alielie
2025-10-13 e3868d4d61ded0e76fc8fe3fdacdd9e6d9113cf1
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;