Exemplo n.º 1
0
 /// <summary>
 /// 朝字典删除一组数据
 /// </summary>
 public void OnClickDataDicDel()
 {
     if (!_isAddDictionary)
     {
         return;
     }
     _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
     _panelEntity.dataDic.Remove(1);
     _panelEntity.dataDic.Clear();
     _isAddDictionary = false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 朝字典添加一条数据和修改一条数据
 /// </summary>
 public void OnClickDataDicAdd()
 {
     if (_isAddDictionary)
     {
         return;
     }
     _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
     _panelEntity.dataDic.Add(1, "1111");
     _panelEntity.dataDic.Add(2, "4444");
     _panelEntity.dataDic[1] = "222";
     _isAddDictionary        = true;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 朝动态数组删除一组数据
 /// </summary>
 public void OnClickDataArrayListDel()
 {
     if (!_isArrayList)
     {
         return;
     }
     _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
     _panelEntity.dataArrayList.Remove(3);
     _panelEntity.dataArrayList.Remove(4);
     _panelEntity.dataArrayList.RemoveAt(0);
     _panelEntity.dataArrayList.Clear();
     _isArrayList = false;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 朝动态数组添加一组数据和修改一条数据
 /// </summary>
 public void OnClickDataArrayListAdd()
 {
     if (_isArrayList)
     {
         return;
     }
     _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
     _panelEntity.dataArrayList.Add(3);
     _panelEntity.dataArrayList.Add(4);
     _panelEntity.dataArrayList[1] = 10;
     _panelEntity.dataArrayList.Insert(2, 10);
     _isArrayList = true;
 }
Exemplo n.º 5
0
 /// <summary>
 /// 朝集合添加一组数据和删除一条数据
 /// </summary>
 public void OnClickdataListDel()
 {
     if (!_isList)
     {
         return;
     }
     _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
     _panelEntity.dataList.Remove(5);
     _panelEntity.dataList.Remove(6);
     _panelEntity.dataList.RemoveAt(1);
     _panelEntity.dataList.Clear();
     _isList = false;
 }
Exemplo n.º 6
0
        /// <summary>
        /// 朝集合添加一组数据和修改一条数据
        /// </summary>
        public void OnClickdataListAdd()
        {
            if (_isList)
            {
                return;
            }
            _panelEntity = (PanelClassEntity)GetComponent <DataModelBehaviour>().DataEntity;
            _panelEntity.dataList.Add(5);
            _panelEntity.dataList.Add(6);
            _panelEntity.dataList[0] = 20;
            _panelEntity.dataList.Insert(1, 30);


            _isList = true;
        }