Ejemplo n.º 1
0
        /// <summary>
        /// Initialize Arx for this app.<br/>
        /// Uses the application name set in Project Settings as the applet name.<br/>
        /// On macOS uses the identifier set in Project Settings, otherwise uses "app.(company name).(app name)" as an identifier.<br/>
        /// If you want more control over these options use <see cref="LogiArxInit(string, string, ref logiArxCbContext)"/>.
        /// </summary>
        /// <param name="callback">Callback function, called when an Arx related event happens.</param>
        public static bool Init(ref logiArxCbContext callback)
        {
            var identifier = $"app.{Application.companyName}.{Application.productName}";

            if (Application.identifier != null && Application.identifier.Length != 0)
            {
                identifier = Application.identifier;
            }
            return(LogiArxInit(identifier, Application.productName, ref callback));
        }
Ejemplo n.º 2
0
 //Common methods. Inatialize, Shutdown etc.
 bool Init(string identifier, string friendlyName, ref logiArxCbContext callback)
 {
     if (LogiArxInit(identifier, friendlyName, ref callback))
     {
         return(true);
     }
     else
     {
         OnError("ARX NOT INITIALIZED: " + LastError);
         return(true);
     }
 }
Ejemplo n.º 3
0
 public static extern bool LogiArxInit(String identifier, String friendlyName, ref logiArxCbContext callback);
Ejemplo n.º 4
0
   public static extern bool LogiArxInit(String identifier, String
 friendlyName, ref logiArxCbContext callback);
Ejemplo n.º 5
0
 public static extern bool LogiArxInitWithIcon(String identifier, String friendlyName, ref logiArxCbContext callback, byte[] iconBitmap);