2013-04-16 00:42:57 +00:00
|
|
|
|
using System.Collections.Generic;
|
2011-01-11 02:55:51 +00:00
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk
|
|
|
|
|
{
|
|
|
|
|
public class InputConfigBase : Form
|
|
|
|
|
{
|
|
|
|
|
public void CheckDups()
|
|
|
|
|
{
|
|
|
|
|
Dictionary<string,bool> dups = new Dictionary<string,bool>();
|
|
|
|
|
foreach (Control c in Controls)
|
|
|
|
|
{
|
|
|
|
|
SmartTextBoxControl stbc = c as SmartTextBoxControl;
|
|
|
|
|
if (stbc == null) continue;
|
|
|
|
|
if (dups.ContainsKey(stbc.Text))
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("DUP!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
dups[stbc.Text] = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|