Exemple #1
0
 public static void InstallAddinManager(Application VisioApp)
 {
     try
     {
         // 将上次插件卸载时保存的程序集数据加载进来
         form_AddinManager frm = form_AddinManager.GetUniqueForm(VisioApp);
         var nodesInfo         = AssemblyInfoDllManager.GetInfosFromSettings();
         frm.RefreshTreeView(nodesInfo);
     }
     catch (Exception ex)
     {
         Debug.Print("AddinManager 插件加载时出错: \n\r" + ex.Message + "\n\r" + ex.StackTrace);
     }
 }
Exemple #2
0
 public static void UninstallAddinManager(Application VisioApp)
 {
     try
     {
         form_AddinManager frm = form_AddinManager.GetUniqueForm(VisioApp);
         var nodesInfo         = frm.NodesInfo;
         //
         // 将窗口中加载的程序集数据保存下来
         AssemblyInfoDllManager.SaveAssemblyInfosToSettings(nodesInfo);
     }
     catch (Exception ex)
     {
         Debug.Print("AddinManager 插件关闭时出错: \n\r" + ex.Message + "\n\r" + ex.StackTrace);
     }
 }