Esempio n. 1
0
        public void LoadUserData(H3DMetaData metaData)
        {
            listViewCustom1.Items.Clear();

            MetaData = metaData;

            if (metaData == null)
            {
                return;
            }

            foreach (var item in metaData)
            {
                LoadUserData(item);
            }
        }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (MetaData == null)
            {
                MetaData = new H3DMetaData();
            }

            H3DMetaDataValue userDataNew = new H3DMetaDataValue();

            userDataNew.Type = H3DMetaDataType.Integer;
            userDataNew.SetValue(new int[0]);
            SelectedData = userDataNew;
            bool IsEdited = EditData();

            if (IsEdited)
            {
                MetaData.Add(SelectedData);
                LoadUserData(SelectedData);
            }
        }