58 lines
905 B
C#
58 lines
905 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;
|
|||
|
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|