From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.Base/SimpleMaskControl.cs | 89 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 89 insertions(+), 0 deletions(-)
diff --git a/HMI.Base/SimpleMaskControl.cs b/HMI.Base/SimpleMaskControl.cs
new file mode 100644
index 0000000..af6ba6c
--- /dev/null
+++ b/HMI.Base/SimpleMaskControl.cs
@@ -0,0 +1,89 @@
+锘縰sing HMI.Core.Api;
+using HMI.UI;
+using log4net;
+using System;
+using System.ComponentModel;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace HMI.Base
+{
+ /// <summary>
+ /// PluginMaskControl.xaml 鐨勪氦浜掗�昏緫
+ /// </summary>
+ public partial class SimpleMaskControl : UserControl, IPlugin
+ {
+ static SimpleMaskControl()
+ {
+ DefaultStyleKeyProperty.OverrideMetadata(typeof(SimpleMaskControl),
+ new FrameworkPropertyMetadata(typeof(SimpleMaskControl)));
+ }
+
+ protected ILog log;
+ protected string BaseFolder;
+
+ public virtual void Active()
+ {
+
+ }
+
+ public virtual void DeActive()
+ {
+
+ }
+
+ public virtual void Init()
+ {
+
+ }
+
+ public virtual void OnTabChange(object sender, object args)
+ {
+
+ }
+
+ public virtual void SetBaseFolder(string folder)
+ {
+ BaseFolder = folder;
+ }
+
+ public virtual void SetLogger(ILog logger)
+ {
+ log = logger;
+ }
+
+ public virtual void InitFinish()
+ {
+
+ }
+
+ public virtual void OnClose(object sender, CancelEventArgs e)
+ {
+
+ }
+
+ public virtual void DoClose(object sender, EventArgs e)
+ {
+
+ }
+
+ public void ShowMask(Action action, Action<Exception> reject = null, string title = null, string content = null)
+ {
+ MaskControl mask = this.Template.FindName("mask", this) as MaskControl;
+ if (mask != null)
+ {
+ mask.ShowMask(this, action, reject, title, content);
+ }
+ }
+
+ public virtual bool CanActive()
+ {
+ return true;
+ }
+
+ public virtual bool CanDeActive()
+ {
+ return true;
+ }
+ }
+}
--
Gitblit v1.9.1