Mesen-X/GUI.NET/Debugger/Controls/ctrlFlagStatus.cs

43 lines
766 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
2019-01-27 13:45:57 -05:00
using Mesen.GUI.Controls;
namespace Mesen.GUI.Debugger.Controls
{
2019-01-27 13:45:57 -05:00
public partial class ctrlFlagStatus : BaseControl
{
public ctrlFlagStatus()
{
InitializeComponent();
if(Program.IsMono) {
2019-01-27 13:45:57 -05:00
lblLetter.Location = new Point(-1, -1);
}
}
public bool Active
{
set
{
2019-01-27 13:45:57 -05:00
panelBorder.BackColor = value ? Color.Red : Color.LightGray;
panelBg.BackColor = value ? Color.White : Color.DarkGray;
lblLetter.ForeColor = Color.Black;
}
}
public string Letter
{
set
{
lblLetter.Text = value;
}
}
}
}