| | |
| | | using HMI.Base; |
| | | using HMI.Core.Api; |
| | | using HMI.UI.Util; |
| | | using Panuon.WPF.UI; |
| | | using System; |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |