Author: cwittich
Date: Wed Jun 3 12:08:30 2009
New Revision: 41267
URL:
http://svn.reactos.org/svn/reactos?rev=41267&view=rev
Log:
-remove unused app.config from project
-attempt to fix external tool list
Modified:
trunk/tools/reactosdbg/RosDBG/ExtTools.cs
trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
trunk/tools/reactosdbg/RosDBG/RosDBG.csproj
Modified: trunk/tools/reactosdbg/RosDBG/ExtTools.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/ExtTools.c…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/ExtTools.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/ExtTools.cs [iso-8859-1] Wed Jun 3 12:08:30 2009
@@ -17,6 +17,7 @@
{
private ExternalToolList mExternalToolsList;
private bool mUpdatingList = false;
+ private bool mAddRemove = false;
public ExtTools()
{
@@ -36,11 +37,12 @@
private void btnAdd_Click(object sender, EventArgs e)
{
+ mAddRemove = true;
ExternalTool t = new ExternalTool();
- mExternalToolsList.Add(t);
ToolsListBox.Items.Add(t);
ToolsListBox.SelectedIndex = ToolsListBox.Items.Count - 1;
btnRemove.Enabled = true;
+ mAddRemove = false;
}
private void ExtTools_Load(object sender, EventArgs e)
@@ -50,7 +52,7 @@
mExternalToolsList = new ExternalToolList();
foreach (object o in mExternalToolsList)
- ToolsListBox.Items.Add(o);
+ ToolsListBox.Items.Add((ExternalTool) o);
}
private void btnRemove_Click(object sender, EventArgs e)
@@ -67,13 +69,16 @@
}
}
- private void SaveItem(ExternalTool item, int Idx)
- {
- mUpdatingList = true;
- item.Title = txtTitle.Text;
- item.Path = txtPath.Text;
- ToolsListBox.Items[Idx] = item;
- mUpdatingList = false;
+ private void SaveItem(int Idx)
+ {
+ if (!mAddRemove)
+ {
+ ExternalTool item = new ExternalTool(txtTitle.Text, txtPath.Text);
+ mUpdatingList = true;
+ ToolsListBox.Items[Idx] = item;
+ mExternalToolsList[Idx] = item;
+ mUpdatingList = false;
+ }
}
private void ToolsListBox_SelectedIndexChanged(object sender, EventArgs e)
@@ -108,20 +113,19 @@
fd.Filter = "Executable files (*.exe)|*.exe";
if (fd.ShowDialog() == DialogResult.OK)
{
- txtPath.Text = fd.FileName;
+ txtPath.Text = fd.FileName;
+ SaveItem(ToolsListBox.SelectedIndex);
}
}
private void txtTitle_TextChanged(object sender, EventArgs e)
{
- if (ToolsListBox.SelectedItem != null)
- SaveItem((ExternalTool)ToolsListBox.SelectedItem,
ToolsListBox.SelectedIndex);
+ SaveItem(ToolsListBox.SelectedIndex);
}
private void txtPath_TextChanged(object sender, EventArgs e)
{
- if (ToolsListBox.SelectedItem != null)
- SaveItem((ExternalTool)ToolsListBox.SelectedItem,
ToolsListBox.SelectedIndex);
+ SaveItem(ToolsListBox.SelectedIndex);
}
}
Modified: trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Properties…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] Wed Jun 3
12:08:30 2009
@@ -39,5 +39,5 @@
// will be increased as well. MSI installers must not be generated with the same Build
Number
// otherwise they won't upgrade the old installation!
-[assembly: AssemblyVersion("1.0.2.51")]
-[assembly: AssemblyFileVersion("1.0.2.51")]
+[assembly: AssemblyVersion("1.0.2.53")]
+[assembly: AssemblyFileVersion("1.0.2.53")]
Modified: trunk/tools/reactosdbg/RosDBG/RosDBG.csproj
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/RosDBG.csp…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/RosDBG.csproj [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/RosDBG.csproj [iso-8859-1] Wed Jun 3 12:08:30 2009
@@ -314,7 +314,6 @@
</ItemGroup>
<ItemGroup>
<Content Include="app-rosdbg.ico" />
- <None Include="app.config" />
<None Include="Resources\copyToolStripMenuItem.Image.png" />
<None Include="Resources\Run.bmp" />
<None Include="Resources\Pause.bmp" />