예제 #1
0
        private void EditCategory()
        {
            AssetType         activeAssetType = _activeItem.Tag as AssetType;
            FormAssetCategory form            = new FormAssetCategory(activeAssetType);

            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshTab();
            }
        }
예제 #2
0
        private void AddCategory()
        {
            AssetType newCategory = new AssetType();

            newCategory.Name = "<new category>";
            FormAssetCategory form = new FormAssetCategory(newCategory);

            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshTab();
            }
        }