Permalink
Browse files

Added refresh context menu to the port selection form.

  • Loading branch information...
IAmCoder committed Jul 18, 2013
1 parent 5aec155 commit 5602c13adebc9bdeae5f597f6bfe363c5934d7e5
@@ -970,14 +970,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe OpenEEG"
"ProductCode" = "8:{84193568-D3FD-4AE6-8867-86A1387F97B9}"
"PackageCode" = "8:{6D2DE3EC-2701-4523-81F0-44551808716D}"
"ProductCode" = "8:{AD1F7480-2EB0-4042-BB29-468EECD03200}"
"PackageCode" = "8:{7C870E6F-379E-4A16-A4AA-DDE89F1F0130}"
"UpgradeCode" = "8:{D21B48DC-E942-48EA-9916-C569C46778E4}"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:0.9.4"
"ProductVersion" = "8:0.9.5"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucid-code.com/Support"
@@ -1501,7 +1501,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_C55B1C30F9804D249DF1E072DCF8CCAD"
{
"SourcePath" = "8:..\\OpenEEG\\obj\\Debug\\lucidcode.LucidScribe.Plugin.OpenEEG.dll"
"SourcePath" = "8:..\\OpenEEG\\obj\\Release\\lucidcode.LucidScribe.Plugin.OpenEEG.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
BIN +5.5 KB (140%) Lucid Scribe - OpenEEG.suo
Binary file not shown.
@@ -17,7 +17,6 @@ public static class Device
static int[] eegChannels;
static double eegValue;

static int blockLength = 256;
static int[] buffer = new int[16];
static int index = 100;
static int lastByte = -1;
@@ -614,6 +613,6 @@ public override void Dispose()
Device.Dispose();
}
}
}
}

}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -21,40 +21,46 @@ public PortForm()

private void PortForm_Load(object sender, EventArgs e)
{
foreach (string strPort in SerialPort.GetPortNames())
{
String strPortName = strPort;
strPortName = strPortName.Replace("a", "");
strPortName = strPortName.Replace("b", "");
strPortName = strPortName.Replace("c", "");
strPortName = strPortName.Replace("d", "");
strPortName = strPortName.Replace("e", "");
strPortName = strPortName.Replace("f", "");
strPortName = strPortName.Replace("g", "");
strPortName = strPortName.Replace("h", "");
strPortName = strPortName.Replace("i", "");
strPortName = strPortName.Replace("j", "");
strPortName = strPortName.Replace("k", "");
strPortName = strPortName.Replace("l", "");
strPortName = strPortName.Replace("m", "");
strPortName = strPortName.Replace("n", "");
strPortName = strPortName.Replace("o", "");
strPortName = strPortName.Replace("p", "");
strPortName = strPortName.Replace("q", "");
strPortName = strPortName.Replace("r", "");
strPortName = strPortName.Replace("s", "");
strPortName = strPortName.Replace("t", "");
strPortName = strPortName.Replace("u", "");
strPortName = strPortName.Replace("v", "");
strPortName = strPortName.Replace("w", "");
strPortName = strPortName.Replace("x", "");
strPortName = strPortName.Replace("y", "");
strPortName = strPortName.Replace("z", "");
LoadPortList();
}

ListViewItem lstItem = new ListViewItem(strPortName);
lstItem.ImageIndex = 0;
lstPorts.Items.Add(lstItem);
}
private void LoadPortList()
{
lstPorts.Clear();
foreach (string strPort in SerialPort.GetPortNames())
{
String strPortName = strPort;
strPortName = strPortName.Replace("a", "");
strPortName = strPortName.Replace("b", "");
strPortName = strPortName.Replace("c", "");
strPortName = strPortName.Replace("d", "");
strPortName = strPortName.Replace("e", "");
strPortName = strPortName.Replace("f", "");
strPortName = strPortName.Replace("g", "");
strPortName = strPortName.Replace("h", "");
strPortName = strPortName.Replace("i", "");
strPortName = strPortName.Replace("j", "");
strPortName = strPortName.Replace("k", "");
strPortName = strPortName.Replace("l", "");
strPortName = strPortName.Replace("m", "");
strPortName = strPortName.Replace("n", "");
strPortName = strPortName.Replace("o", "");
strPortName = strPortName.Replace("p", "");
strPortName = strPortName.Replace("q", "");
strPortName = strPortName.Replace("r", "");
strPortName = strPortName.Replace("s", "");
strPortName = strPortName.Replace("t", "");
strPortName = strPortName.Replace("u", "");
strPortName = strPortName.Replace("v", "");
strPortName = strPortName.Replace("w", "");
strPortName = strPortName.Replace("x", "");
strPortName = strPortName.Replace("y", "");
strPortName = strPortName.Replace("z", "");

ListViewItem lstItem = new ListViewItem(strPortName);
lstItem.ImageIndex = 0;
lstPorts.Items.Add(lstItem);
}
}

private void lstPlaylists_MouseMove(object sender, MouseEventArgs e)
@@ -78,5 +84,10 @@ private void lstPlaylists_SelectedIndexChanged(object sender, EventArgs e)
Close();
}
}

private void mnuRefresh_Click(object sender, EventArgs e)
{
LoadPortList();
}
}
}
@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="mnuPortsList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>102, 17</value>
</metadata>
<metadata name="lstImg.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
@@ -125,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACW
DQAAAk1TRnQBSQFMAwEBAAFgAQABYAEAAR8BAAEcAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABfAMA
DQAAAk1TRnQBSQFMAwEBAAFoAQABaAEAAR8BAAEcAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABfAMA
ARwDAAEBAQABGAUAAbABKBIAXf//ABgABv8B6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHW
AccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHW
AccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6QHWAccB6AHX
@@ -190,10 +193,10 @@
<data name="Label5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAACfSURBVDhPnZJBDgARDEUt3MideqfZWcxx7B3H5EtIdXxj
NGlE6Pvtx7lF5JxLjHfBurpHz1CMCEHOAFBG8XEHaO23Otpe5acXbe46vIqUUt3hfIBYpxnAe190doh2
GvMygO4GoA6wTjeAiJRZAjQArCkaoFWdXLXwBWAeQB2BwpZTAPNgG7DyQKvTEZgH9tnafttE+5HoM846
YOqzj/QAiMmQQWgmMT8AAAAASUVORK5CYII=
YQUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAACXSURBVDhPnZDBDcAgCEU9uFF3YqfePHQc745j860kiGBr
X0JMLP9JCStKKTWlq+LsV3sgDI6D/gnwMsK/JwDbr2PsVfU2HzRZ5JzbOUn0pj1BjHGoFgYcwL+iPIFk
EOhNs4CIzAKDQCMFkkBnC4JpAoSsCQCCXKaAA3oHnwWrHciwK9CwAE1W8bfePsOCFa8C+aJXT3cIN4jJ
kEFaMsuqAAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.4.0")]
[assembly: AssemblyFileVersion("0.9.4.0")]
[assembly: AssemblyVersion("0.9.5.0")]
[assembly: AssemblyFileVersion("0.9.5.0")]

0 comments on commit 5602c13

Please sign in to comment.