public static Machine CreateMachineLib(String resourceFile) { MoSync.Machine mosyncMachine = new MoSync.Machine(false, true); StreamResourceInfo resourcesResInfo = Application.GetResourceStream(new Uri(resourceFile, UriKind.Relative)); Stream resources = null; if (resourcesResInfo != null && resourcesResInfo.Stream != null) { resources = resourcesResInfo.Stream; } Core core = new MoSync.CoreNative(); (core as MoSync.CoreNative).InitData(); mosyncMachine.InitLib(core, resources); return(mosyncMachine); }
public static Machine CreateMachineLib(String resourceFile) { MoSync.Machine mosyncMachine = new MoSync.Machine(false, true); StreamResourceInfo resourcesResInfo = Application.GetResourceStream(new Uri(resourceFile, UriKind.Relative)); Stream resources = null; if (resourcesResInfo != null && resourcesResInfo.Stream != null) resources = resourcesResInfo.Stream; Core core = new MoSync.CoreNative(); (core as MoSync.CoreNative).InitData(); mosyncMachine.InitLib(core, resources); return mosyncMachine; }