// 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(); }
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(); }