/// <summary> /// Starts the main loop, creates a window, loads the URL, shows the window and blocks until the application exits. /// </summary> /// <param name="config">The window configuration.</param> /// <param name="startUrl">The initial URL to load in the window.</param> /// <exception cref="ArgumentNullException"><paramref name="config"/> is null.</exception> /// <exception cref="ArgumentNullException"><paramref name="startUrl"/> is null.</exception> public static void Run(WindowConfiguration config, string startUrl) { if (config == null) { throw new ArgumentNullException(nameof(config)); } Run(Factory.CreateWindow(config), startUrl); }
/// <summary> /// Creates a new window. /// </summary> /// <param name="config">The window configuration.</param> /// <returns>The created window.</returns> /// <exception cref="ArgumentNullException"><paramref name="config"/> is null.</exception> public static IWindow CreateWindow(WindowConfiguration config) { return(Factory.CreateWindow(config)); }