public WinLIRCMappingEditorForm(Settings settings)
{
InitializeComponent();
this.settings = settings;
this.winLIRCcommandMapping = new Hashtable(this.settings.WinLIRCCommandMapping);
this.winLIRC = new WinLIRC();
this.winLIRC.SyncControl = this;
this.winLIRC.HostName = this.settings.WinLIRCHostName;
this.winLIRC.Port = this.settings.WinLIRCPort;
this.winLIRC.CommandReceived += new WinLIRC.CommandReceivedEventHandler(winLIRC_CommandReceived);
foreach (string winLIRCCommand in this.winLIRCcommandMapping.Keys)
{
ListViewItem lvi = new ListViewItem(winLIRCCommand);
lvi.SubItems.Add(((MainForm.CommandName)this.winLIRCcommandMapping[winLIRCCommand]).ToString());
this.listViewCommandMapping.Items.Add(lvi);
}
this.comboBoxApplicationCommand.Items.AddRange(Enum.GetNames(typeof(MainForm.CommandName)));
this.comboBoxApplicationCommand.SelectedIndex = 0;
}