Mesen-X/GUI.NET/Forms/Config/ctrlDipSwitch.cs
2016-12-11 14:25:29 -05:00

58 lines
931 B
C#

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;
using Mesen.GUI.Controls;
namespace Mesen.GUI.Forms.Config
{
public partial class ctrlDipSwitch : BaseControl
{
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;
}
}
}
}