public void Load(String url, object onload) { if (url.StartsWith("/")) { url = Global.ServiceUrl + "/" + url; } onload_callback_ = onload; window_.LoadWindow(url); }
public void Load(String url, object onload) { onload_callback_ = onload; if (url.StartsWith("http://", StringComparison.CurrentCultureIgnoreCase)) { window_.LoadWindow(url); } else { window_.LoadWindow(String.Format("{0}/{1}/{2}", Setting.Instance.ServiceUrl, Setting.Instance.ResPath, url)); } }