private void EditCategory() { AssetType activeAssetType = _activeItem.Tag as AssetType; FormAssetCategory form = new FormAssetCategory(activeAssetType); if (form.ShowDialog() == DialogResult.OK) { RefreshTab(); } }
private void AddCategory() { AssetType newCategory = new AssetType(); newCategory.Name = "<new category>"; FormAssetCategory form = new FormAssetCategory(newCategory); if (form.ShowDialog() == DialogResult.OK) { RefreshTab(); } }