|
From: <an...@us...> - 2007-05-19 06:39:12
|
Revision: 407
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=407&view=rev
Author: and-81
Date: 2007-05-18 23:39:06 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Fixed GoToScreen.cs not storing the screen number
Modified Paths:
--------------
trunk/plugins/IR Server Suite/Common/MPUtils/Forms/GoToScreen.cs
trunk/plugins/MCEReplacement/Forms/GoToScreen.cs
Modified: trunk/plugins/IR Server Suite/Common/MPUtils/Forms/GoToScreen.cs
===================================================================
--- trunk/plugins/IR Server Suite/Common/MPUtils/Forms/GoToScreen.cs 2007-05-18 18:02:50 UTC (rev 406)
+++ trunk/plugins/IR Server Suite/Common/MPUtils/Forms/GoToScreen.cs 2007-05-19 06:39:06 UTC (rev 407)
@@ -16,7 +16,7 @@
public string Screen
{
- get { return comboBoxScreen.SelectedItem as string; }
+ get { return comboBoxScreen.SelectedText; }
}
#endregion Properties
@@ -33,7 +33,7 @@
if (String.IsNullOrEmpty(selected))
comboBoxScreen.SelectedIndex = 0;
else
- comboBoxScreen.SelectedItem = selected;
+ comboBoxScreen.SelectedText = selected;
}
#endregion Constructors
Modified: trunk/plugins/MCEReplacement/Forms/GoToScreen.cs
===================================================================
--- trunk/plugins/MCEReplacement/Forms/GoToScreen.cs 2007-05-18 18:02:50 UTC (rev 406)
+++ trunk/plugins/MCEReplacement/Forms/GoToScreen.cs 2007-05-19 06:39:06 UTC (rev 407)
@@ -16,14 +16,14 @@
public string Screen
{
- get { return (string)comboBoxScreen.SelectedItem; }
+ get { return comboBoxScreen.SelectedText; }
}
#endregion Properties
#region Constructors
- public GoToScreen() : this("") { }
+ public GoToScreen() : this(String.Empty) { }
public GoToScreen(string selected)
{
InitializeComponent();
@@ -33,7 +33,7 @@
if (String.IsNullOrEmpty(selected))
comboBoxScreen.SelectedIndex = 0;
else
- comboBoxScreen.SelectedItem = selected;
+ comboBoxScreen.SelectedText = selected;
}
#endregion Constructors
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|