private void AddType() { // Get the selected (active) category AssetType activeAssetType = _activeItem.Tag as AssetType; // Create a new asset type object AssetType newAssetType = new AssetType(); newAssetType.SetParentCategory(activeAssetType); newAssetType.Icon = activeAssetType.Icon; // ...and invoke the AssetType Properties form FormAssetType form = new FormAssetType(activeAssetType, newAssetType); if (form.ShowDialog() == DialogResult.OK) { RefreshTab(); } }