public Row AddRow(List <Data.Item> dataItems) { SubList parent = GetLastSublist(); if (parent == null) { parent = Helper.UIObjectCreator.CreateSubList(itemsReference, personalize); } List.Row row = Helper.UIObjectCreator.CreateRow(parent.GetTransform(), personalize); parent.Add(row); AddItemsToParent(dataItems, row); return(row); }
//Добавить строку подтаблицы public void AddRow(TablRow row, bool addIndices) //Добавлять индексирование по полям Code и Num { row.Parent = this; SubList.Add(row); if (addIndices) { SubNums.Add(row.Num, row); if (!row.Code.IsEmpty()) { SubCodes.Add(row.Code, row); } } }
public void AddSublist() { GameObject obj = new GameObject("Sublist"); SubList list = obj.AddComponent <SubList>(); list.Initialize(); list.transform.SetParent(itemsReference); //TODO možda: //Sublist.Initialize(); -> IMultiList.Initialize(); -> AddComponentWithParameters Data.Item data = new Data.Item("HEADER"); List.Item item1 = CreateItem(data, obj.transform); item1.transform.SetParent(obj.transform); list.Add(item1); }
public ISubInsertable <T> AddSubList(Expression <Func <T, SubInsertTree> > tree) { try { var lamda = (tree as LambdaExpression); var memInit = lamda.Body as MemberInitExpression; if (memInit.Bindings != null) { MemberAssignment memberAssignment = (MemberAssignment)memInit.Bindings[0]; SubList.Add(new SubInsertTreeExpression() { Expression = memberAssignment.Expression, Childs = GetSubInsertTree(((MemberAssignment)memInit.Bindings[1]).Expression) }); } } catch { Check.Exception(true, tree.ToString() + " format error "); } return(this); }
public void AddNewItem(A newItem, Func<A, bool> checkForItemInMasterList) { if (checkForItemInMasterList.Invoke(newItem) SubList.Add(newItem); }
public void AddSubLine(RawSubLink subLink) { SubList.Add(subLink); }