Mesen-X/GUI.NET/Forms/Config/ctrlDipSwitch.cs

58 lines
905 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;
namespace Mesen.GUI.Forms.Config
{
public partial class ctrlDipSwitch : UserControl
{
public ctrlDipSwitch()
{
InitializeComponent();
}
[Bindable(true)]
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[EditorBrowsable(EditorBrowsableState.Always)]
public override string Text
{
get
{
return lblName.Text;
}
set
{
lblName.Text=value;
}
}
public ComboBox.ObjectCollection Items
{
get
{
return cboDipSwitch.Items;
}
}
public int SelectedIndex
{
get
{
return cboDipSwitch.SelectedIndex;
}
set
{
cboDipSwitch.SelectedIndex = value;
}
}
}
}