Esempio n. 1
0
        public string ResolveExoUrlPath(string url)
        {
            string result = url
                            .Replace("{port}", ActualPort.ToString())
                            .Replace("{ExecutableLocation}", Path.GetDirectoryName(Application.ExecutablePath))
                            .Replace("{CurrentLocation}", environmentLocationCurrent)
                            .Replace("{SettingsLocation}", environmentLocationSettings);

            return(result);
        }
Esempio n. 2
0
        public void OpenNewWindow(string caption, string url, int width, int height, string mode = "")
        {
            if (!url.StartsWith("@") && url.Contains("{port}"))
            {
                url = this.Settings.WebBrowserBaseUrl.Replace("{port}", ActualPort.ToString()) + url;
            }

            ChildWindow childWindow = new ChildWindow(this, Logger, this.Settings,
                                                      caption, url, width, height, mode);

            hostWindows.Add(childWindow);
            childWindow.Show();
        }