Ejemplo n.º 1
0
 public static Variant _wfProjectList(Variant wfo, IntPtr versionData, object[] userData)
 {
     if (!_initialized)
     {
         Initialize();
         _initialized = true;
     }
     try
     {
         if (wfo.vt != (ushort)VarEnum.VT_DISPATCH)
         {
             throw new ArgumentException();
         }
         IWFBusinessLogic wf   = (IWFBusinessLogic)Marshal.GetTypedObjectForIUnknown(wfo.data1, typeof(IWFBusinessLogic));
         PDMVersionData   data = (PDMVersionData)Marshal.PtrToStructure(versionData, typeof(PDMVersionData));
         bool             res  = WFProjectList(wf, data, userData);
         return(new Variant(res));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), PluginCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
         return(new Variant(VarEnum.VT_NULL));
     }
 }
Ejemplo n.º 2
0
 public static bool WFProjectList(IWFBusinessLogic wf, PDMVersionData versionData, object[] userData)
 {
     return(true);
 }