Esempio n. 1
0
        // C o n s t r u c t o r

        public ObjectBankDataEditor(ObjectBankDataListCollection obdListCollection)
        {
            // G U I

            this.Shown       += ObjectBankDataEditor_Shown;
            ObdListCollection = obdListCollection;

            // Create GUI
            InitializeComponent();
            base.UpdateAmbientColors();
        }
Esempio n. 2
0
        private void RemoveObdList(Node nObdList)
        {
            var nRoot = nObdList.Parent;
            KeyValuePair <byte, ObjectBankDataList> kvp = (KeyValuePair <byte, ObjectBankDataList>)nObdList.Tag;
            ObjectBankDataListCollection            obdListCollection = (ObjectBankDataListCollection)nRoot.Tag;

            // Remove list
            obdListCollection.Remove(kvp.Key);

            // Remove node
            BeginTreeUpdate();
            nRoot.Nodes.Remove(nObdList);
            EndTreeUpdate();
        }