| | |
| | | using System; |
| | | using System.ComponentModel; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Windows; |
| | | using System.Windows.Controls; |
| | | using HMI.Core.Api; |
| | | using HMI.UI; |
| | |
| | | |
| | | namespace HMI.Base |
| | | { |
| | | public class PluginMaskControl : UserControl, IPlugin, INotifyPropertyChanged |
| | | |
| | | /// <summary> |
| | | /// PluginMaskControl.xaml 的交互逻辑 |
| | | /// </summary> |
| | | public partial class PluginMaskControl : UserControl, IPlugin, INotifyPropertyChanged |
| | | { |
| | | #region ... |
| | | public event PropertyChangedEventHandler PropertyChanged; |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | static PluginMaskControl() |
| | | { |
| | | DefaultStyleKeyProperty.OverrideMetadata(typeof(PluginMaskControl), |
| | | new FrameworkPropertyMetadata(typeof(PluginMaskControl))); |
| | | } |
| | | |
| | | protected ILog log; |
| | | protected string BaseFolder; |
| | |
| | | mask.ShowMask(this, action, reject, title, content); |
| | | } |
| | | } |
| | | |
| | | public virtual bool CanActive() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | public virtual bool CanDeActive() |
| | | { |
| | | return true; |
| | | } |
| | | } |
| | | } |