Beispiel #1
0
        static IUnoHostControlFactory GetImplementation()
        {
            if (_factory != null)
            {
                return(_factory);
            }

            if (Platform.OperatingSystem == OS.Mac)
            {
                Assembly.Load("UnoHost");
            }
            if (Platform.OperatingSystem == OS.Windows)
            {
                Assembly.Load("Outracks.UnoHost.Windows");
            }

            return(_factory = ImplementationLocator.CreateInstance <IUnoHostControlFactory>());
        }
Beispiel #2
0
 public static bool InitializeAsDocumentApp(IList <string> args, string applicationName)
 {
     _implementation = ImplementationLocator.CreateInstance <IApplication>();
     return(_implementation.InitializeDocumentApp(args, applicationName));
 }
Beispiel #3
0
 public static IApplication Initialize(IList <string> args)
 {
     _implementation = ImplementationLocator.CreateInstance <IApplication>();
     _implementation.Initialize(args);
     return(_implementation);
 }