1# 引用 

C:\AVEVA\Marine\OH12.1.SP4\Aveva.ApplicationFramework.dll

C:\AVEVA\Marine\OH12.1.SP4\Aveva.ApplicationFramework.Presentation.dll

2# 引用命名空间,

using Aveva.ApplicationFramework.Presentation;
using Aveva.ApplicationFramework;

3# 继承接口Iaddin

4#写代码

 1  public class Class1 : IAddin
 2     {
 3         public string Name { get; }
 4 
 5         public string Description { get; }
 6 
 7         public void Start(ServiceManager serviceManager)
 8         {
 9             System.Windows.Forms.MessageBox.Show("欢迎使用本插件!");
10         }
11 
12         public void Stop()
13         {
14             System.Windows.Forms.MessageBox.Show("感谢使用本插件!");
15         }
16     }
View Code

相关文章:

  • 2022-12-23
  • 2021-05-07
  • 2021-08-09
  • 2021-12-02
  • 2022-02-24
  • 2021-12-24
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-08-16
  • 2021-12-18
  • 2021-08-19
  • 2021-12-19
相关资源
相似解决方案