Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }