Exemplo n.º 1
0
        public void __Gen_Delegate_Imp5(ListViewCell p0, int p1, int p2)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int err_func   = LuaAPI.load_error_func(L, errorFuncRef);
            ObjectTranslator translator = luaEnv.translator;

            LuaAPI.lua_getref(L, luaReference);

            translator.Push(L, p0);
            LuaAPI.xlua_pushinteger(L, p1);
            LuaAPI.xlua_pushinteger(L, p2);

            int __gen_error = LuaAPI.lua_pcall(L, 3, 0, err_func);
            if (__gen_error != 0)
            {
                luaEnv.ThrowExceptionFromError(err_func - 1);
            }



            LuaAPI.lua_settop(L, err_func - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Exemplo n.º 2
0
        static int _g_get_refreshCell(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ListViewCell gen_to_be_invoked = (ListViewCell)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.refreshCell);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 3
0
        static int _s_set_refreshCell(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ListViewCell gen_to_be_invoked = (ListViewCell)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.refreshCell = translator.GetDelegate <ListViewCell.RefreshCell>(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
    public TableViewCell GetCellForRowInTableView(TableView tableView, int row)
    {
        ListViewCell cell = tableView.GetReusableCell(tableCell.reuseIdentifier) as ListViewCell;

        if (cell == null)
        {
            cell = (ListViewCell)GameObject.Instantiate(tableCell);
        }
        Blob item = items[row];

        cell.Name.text   = item.Name;
        cell.Delete.name = item.Name; // save reference to button name
        return(cell);
    }
Exemplo n.º 5
0
        public static bool IsSelected(this ListViewCell cell)
        {
            var listViewRow = cell.GetParent <ListViewRow>();

            if (!listViewRow.IsSelected)
            {
                return(false);
            }

            var value = listViewRow.AutomationElement.GetCurrentPropertyValue(SelectionPatternIdentifiers.SelectionProperty);


            cell.ActionListener.ActionPerforming(cell);
            return((bool)cell.AutomationElement.GetCurrentPropertyValue(SelectionItemPattern.IsSelectedProperty));
        }
Exemplo n.º 6
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    ListViewCell gen_ret = new ListViewCell();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to ListViewCell constructor!"));
        }
Exemplo n.º 7
0
        public UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var listViewCell = (ListViewCell)tableView.DequeueReusableCell(ListViewCellIndentifier);

            if (listViewCell == null)
            {
                listViewCell = ListViewCell.Create();

                listViewCell.SelectionStyle = UITableViewCellSelectionStyle.None;
            }

            listViewCell.ConfigureHomeViewCell(indexPath.Row, MainVm.AllEmployees[indexPath.Row]);

            listViewCell.LayoutMargins = UIEdgeInsets.Zero;

            listViewCell.PreservesSuperviewLayoutMargins = false;

            return(listViewCell);
        }
Exemplo n.º 8
0
        static int _m_RefreshCellView(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ListViewCell gen_to_be_invoked = (ListViewCell)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.RefreshCellView(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_CreateCell(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ListViewSimpleDelegate gen_to_be_invoked = (ListViewSimpleDelegate)translator.FastGetCSObj(L, 1);



                {
                    ListViewCell gen_ret = gen_to_be_invoked.CreateCell(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 10
0
 public CellItemBinding(ListViewCell target, CellItemBindingProperty property)
     : base(target)
 {
     _property = property;
 }
Exemplo n.º 11
0
 void CellRefreshDel(ListViewCell cell, int dataIndex, int cellIndex)
 {
     cell.transform.FindChild("Index").GetComponent <Text>().text = dataIndex.ToString();
     Debug.Log("dataIndex----" + dataIndex + ",cellIndex---------" + cellIndex);
 }