using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.PPC.Common
{
///
/// Represents a attribute
///
///
[AttributeUsage(AttributeTargets.Class)]
public class PPCModuleAttribute : Attribute
{
///
/// Gets or sets the module index.
///
public int Index { get; private set; }
///
/// Gets or sets the home view.
///
public String HomeViewName { get; set; }
///
/// Gets or sets a value indicating whether to dock this module menu item to the bottom..
///
public bool DockToBottom { get; set; }
///
/// Initializes a new instance of the class.
///
/// The module index.
public PPCModuleAttribute(int index)
{
Index = index;
}
///
/// Initializes a new instance of the class.
///
/// The module index.
/// Name of the home view.
public PPCModuleAttribute(int index, String homeViewName) : this(index)
{
HomeViewName = homeViewName;
}
///
/// Initializes a new instance of the class.
///
/// The module index.
/// Name of the home view.
public PPCModuleAttribute(int index, String homeViewName, bool dockToBottom) : this(index, homeViewName)
{
HomeViewName = homeViewName;
DockToBottom = dockToBottom;
}
}
}