|
From: <an...@us...> - 2007-05-04 13:55:12
|
Revision: 374
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=374&view=rev
Author: and-81
Date: 2007-05-04 06:55:10 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/IgorPlugUSB/Config.cs
trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
Modified: trunk/plugins/IgorPlugUSB/Config.cs
===================================================================
--- trunk/plugins/IgorPlugUSB/Config.cs 2007-05-04 13:31:38 UTC (rev 373)
+++ trunk/plugins/IgorPlugUSB/Config.cs 2007-05-04 13:55:10 UTC (rev 374)
@@ -25,6 +25,8 @@
private void Config_Load(object sender, EventArgs e)
{
+ listViewButtons.Items.Clear();
+
foreach (MappedKeyCode mKC in IgorPlugUSB.KeyCodes)
{
listViewButtons.Items.Add(
@@ -48,7 +50,7 @@
private void buttonOK_Click(object sender, EventArgs e)
{
- IgorPlugUSB.KeyCodes = new List<MappedKeyCode>();
+ IgorPlugUSB.KeyCodes.Clear();
foreach (ListViewItem item in listViewButtons.Items)
IgorPlugUSB.KeyCodes.Add(new MappedKeyCode(item.SubItems[0].Text, item.SubItems[1].Text));
Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
===================================================================
--- trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-04 13:31:38 UTC (rev 373)
+++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-04 13:55:10 UTC (rev 374)
@@ -72,6 +72,8 @@
try
{
+ LoadRemote();
+
_inputHandler = new InputHandler(InputHandler);
_readThread = new Thread(new ThreadStart(ReadThread));
@@ -127,6 +129,8 @@
void LoadRemote()
{
+ KeyCodes.Clear();
+
XmlDocument doc = new XmlDocument();
doc.Load(RemoteFile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|