This repository has been archived on 2025-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

39 lines
1001 B
C#

namespace RhythmBase.Events
{
/// <summary>
/// Represents an action to set the visibility of a decoration.
/// </summary>
public class SetVisible : BaseDecorationAction
{
/// <summary>
/// Initializes a new instance of the <see cref="SetVisible"/> class.
/// </summary>
public SetVisible()
{
Type = EventType.SetVisible;
Tab = Tabs.Decorations;
}
/// <summary>
/// Gets the type of the event.
/// </summary>
public override EventType Type { get; }
/// <summary>
/// Gets the tab to which the event belongs.
/// </summary>
public override Tabs Tab { get; }
/// <summary>
/// Gets or sets a value indicating whether the decoration is visible.
/// </summary>
public bool Visible { get; set; }
/// <summary>
/// Returns a string that represents the current object.
/// </summary>
/// <returns>A string that represents the current object.</returns>
public override string ToString() => base.ToString() + string.Format(" {0}", Visible);
}
}