/// <summary> /// creates a new browser instance and shows it to the user /// </summary> /// <param name="target">the parameters to pass to the browser</param> private static void CreateBrowserAndShowIt(object target) { ARESBrowser browser; if (target is string) { browser = new ARESBrowser(target as string); } else { string[] paramArray = target as string[]; browser = new ARESBrowser(paramArray[0], paramArray[1]); } Application.Run(browser); }
/// <summary> /// creates a new browser instance and shows it to the user /// </summary> /// <param name="target">the parameters to pass to the browser</param> private static void CreateBrowserAndShowIt(object target) { ARESBrowser browser; if (target is string) { browser = new ARESBrowser(target as string); } else { string[] paramArray = target as string[]; browser = new ARESBrowser(paramArray[0], paramArray[1]); } Application.Run(browser); }