blob: a7efea4d84657fbf66448548ec129f3b9d511e83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
namespace AdvancedInspector
{
/// <summary>
/// The tabs allows to create a collection of tabs at the top based on an Enum's values.
/// Hides or shows items that are part of the selected tab.
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)]
public class TabAttribute : Attribute
{
private Enum tab;
public Enum Tab
{
get { return tab; }
set { tab = value; }
}
public TabAttribute(object tab)
{
this.tab = (Enum)tab;
}
}
}
|