Exemplo n.º 1
0
        // Function from file: html_interface.dm
        public void hide(dynamic hclient = null)
        {
            hclient = this.getClient(hclient);

            if (hclient is HtmlInterfaceClient)
            {
                if (this.clients != null)
                {
                    this.clients.Remove(hclient.client);

                    if (!(this.clients.len != 0))
                    {
                        this.clients = null;
                    }
                }
                hclient.client.hi_last_pos = Interface13.WindowGet(hclient.client, new Txt("browser_").Ref(this).ToString(), "pos");
                Interface13.WindowShow(hclient.client, new Txt("browser_").Ref(this).ToString(), GlobalVars.FALSE);
                Interface13.WindowSet(hclient.client, new Txt("browser_").Ref(this).ToString(), "parent=none");

                if (Lang13.HasCall(this.v_ref, "hiOnHide"))
                {
                    Lang13.Call(Lang13.BindFunc(this.v_ref, "hiOnHide"), hclient);
                }
            }
            return;
        }
Exemplo n.º 2
0
        // Function from file: html_interface.dm
        public dynamic _getClient(dynamic hclient = null)
        {
            bool res = false;


            if (Lang13.Bool(hclient))
            {
                if (Lang13.Bool(hclient.client))
                {
                    res = hclient.client.inactivity <= 6000 && Lang13.Bool((Lang13.HasCall(this.v_ref, "hiIsValidClient") ? Lang13.Call(Lang13.BindFunc(this.v_ref, "hiIsValidClient"), hclient, this) : ((dynamic)(GlobalVars.TRUE))));

                    if (res)
                    {
                        if (!Lang13.Bool(hclient.active))
                        {
                            this.enableFor(hclient);
                        }
                    }
                    else if (Lang13.Bool(hclient.active))
                    {
                        this.disableFor(hclient);
                    }
                    return(hclient);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
            return(null);
        }