public JSValue OpenUserInfo(JSValue[] arguments) { var url = ConfigManager.ServerAddress + "zh-CN/Im/ImWeb/UserInfo"; if (userInfo == null || userInfo.IsDisposed) { userInfo = new FormApp(_currentUserId, url); } userInfo.Show(); return(JSValue.Undefined); }
public JSValue OpenAppForm(JSValue[] arguments) { var url = ConfigManager.ServerAddress + "zh-CN/Im/MyRetechWing/" + arguments[0]; if (_apps.ContainsKey(url)) { var app = _apps[url]; app.Show(); app.Focus(); } else { var app = new FormApp(_currentUserId, url); _apps.Add(url, app); app.FormClosed += (s, e) => _apps.Remove(url); app.Show(); app.Focus(); } return(JSValue.Undefined); }