39 lines
852 B
C#
39 lines
852 B
C#
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AppLauncher.Windows.Forms
|
|
{
|
|
public partial class HeadingPanel : UserControl
|
|
{
|
|
protected bool isChecked = false;
|
|
|
|
public HeadingPanel()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.Checked = false;
|
|
}
|
|
|
|
[Category("Appearance"), Browsable(true)]
|
|
public string TitleText
|
|
{
|
|
get => label1.Text;
|
|
set => label1.Text = value;
|
|
}
|
|
|
|
[Category("Appearance"), Browsable(true)]
|
|
public bool Checked
|
|
{
|
|
get => isChecked;
|
|
set
|
|
{
|
|
isChecked = value;
|
|
|
|
pictureBox1.BackgroundImage = (value) ? Properties.Resources.toggle_right_ea_16 : Properties.Resources.toggle_left_ea_16;
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|