public static CGCompParameters SetDefaults()
        {
            CGCompParameters Params = new CGCompParameters();

            NativeCode.GComp_SetDefaults(ref Params);
            return(Params);
        }
        public static bool Compile(string ConfigurationFilePath, string DestinationPath)
        {
            CGCompParameters Params = SetDefaults();

            Params.CompoundFileName = ConfigurationFilePath;
            Params.DirectoryName    = DestinationPath;
            return(Compile(ref Params));
        }
 public static void SaveSettings(ref CGCompParameters Params)
 {
     try
     {
         NativeCode.GComp_SaveSettings(ref Params);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static bool Compile(ref CGCompParameters Params)
 {
     NativeCode.GComp_Compile(ref Params);
     return(true);
 }
 public static bool Decompile(ref CGCompParameters Params)
 {
     return(NativeCode.GComp_Decompile(ref Params) == 1);
 }
 public static void ReadSettings(ref CGCompParameters Params)
 {
     NativeCode.GComp_ReadSettings(ref Params);
 }
 public static extern int GComp_Compile(ref CGCompParameters Parameters);
 public static extern void GComp_SaveSettings(ref CGCompParameters Parameters);
 public static extern void GComp_SetDefaults(ref CGCompParameters Parameters);