| | |
| | | using HMI.Base; |
| | | using HMI.Core.Entity; |
| | | using HMI.Core.Manager; |
| | | using HMI.Core.Setting; |
| | | using HMI.Core.Util; |
| | | using HMI.UI.Util; |
| | | using HMI.Util; |
| | |
| | | using System.Collections.Generic; |
| | | using System.Collections.ObjectModel; |
| | | using System.Linq; |
| | | using System.Text.RegularExpressions; |
| | | using System.Windows; |
| | | using System.Windows.Controls; |
| | | |
| | |
| | | Loaded -= UserControl_Loaded; |
| | | } |
| | | |
| | | public override bool CanActive() |
| | | { |
| | | if (ParamSetting.IsOptRequirePassword) |
| | | { |
| | | var win = new RequirePasswordWindow |
| | | { |
| | | Owner = Window.GetWindow(this), |
| | | WindowStartupLocation = WindowStartupLocation.CenterScreen |
| | | }; |
| | | return win.ShowDialog() == true; |
| | | } |
| | | else |
| | | { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | } |