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>()); }
public static bool InitializeAsDocumentApp(IList <string> args, string applicationName) { _implementation = ImplementationLocator.CreateInstance <IApplication>(); return(_implementation.InitializeDocumentApp(args, applicationName)); }
public static IApplication Initialize(IList <string> args) { _implementation = ImplementationLocator.CreateInstance <IApplication>(); _implementation.Initialize(args); return(_implementation); }