Exemplo n.º 1
0
        public void DisplayAllRecords()
        {
            recordList.Clear();
            recordList.AddItems(CloningConsole.CloningRecords.Count());

            var i = 0;

            foreach (var cloningRecord in CloningConsole.CloningRecords)
            {
                GUI_CloningRecordItem item = recordList.Entries[i] as GUI_CloningRecordItem;
                item.gui_Cloning   = this;
                item.cloningRecord = cloningRecord;
                item.SetValues();
                i++;
            }
        }
Exemplo n.º 2
0
        public bool AddItem()
        {
            var entryArray = Entries;

            for (var i = 0; i < entryArray.Length; i++)
            {
                DynamicEntry entry = entryArray[i];
                var          item  = entry as GUI_CloningRecordItem;
            }

            //add new entry
            GUI_CloningRecordItem newEntry = Add() as GUI_CloningRecordItem;

            if (!newEntry)
            {
                return(false);
            }

            //rescan elements  and notify
            NetworkTabManager.Instance.Rescan(MasterTab.NetTabDescriptor);
            UpdatePeepers();

            return(true);
        }