public AppHost(SciterWindow window) { _archive.Open(ArchiveResource.resources); _window = window; SetupWindow(_window); window.Show(); }
public BaseArchiveHost(SciterWindow window) : base(window: window) { _window = window; //#if !DEBUG _archive.Open(); //#endif }
public BaseHost() { _instances.Add(this); #if !DEBUG _archive.Open(SciterAppResource.ArchiveResource.resources); #endif }
//private static SciterWindow _vm_wnd;// keep the same VM alive public static void Setup() { if (_archive == null) { _archive = new SciterArchive(); _archive.Open(SciterAppResource.ArchiveResource.resources); } /*if(_vm_wnd == null) * { * _vm_wnd = new SciterWindow(); * _vm_wnd.CreateMainWindow(0, 0, SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_MAIN | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_TITLEBAR | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_ENABLE_DEBUG); * }*/ }
static BaseHost() { _archive.Open(SciterAppResource.ArchiveResource.resources); #if DEBUG _rescwd = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location).Replace('\\', '/'); #if OSX _rescwd += "/../../../../../res/"; #else _rescwd += "/../../res/"; #endif _rescwd = Path.GetFullPath(_rescwd).Replace('\\', '/'); Debug.Assert(Directory.Exists(_rescwd)); #endif }
public BaseHost() { #if !DEBUG _archive.Open(SciterSharpAppResource.ArchiveResource.resources); #endif }
public BaseHost(SciterWindow window) : base(window) { _window = window; _archive.Open(); }
public void Open_archive() { Assert.DoesNotThrow(() => _archive.Open(_assembly)); Assert.IsTrue(_archive.IsOpen); Assert.AreEqual(SciterArchive.DEFAULT_ARCHIVE_URI, _archive.Uri.AbsoluteUri); }
public BaseHost() { #if !DEBUG archive.Open(ArchiveResource.resources); #endif }
public BaseHost(ILogger logger, SciterWindow window) : base(window) { _logger = logger; _archive.Open(); }