Author: gedmurphy
Date: Fri Jun 22 14:47:24 2007
New Revision: 27259
URL:
http://svn.reactos.org/svn/reactos?rev=27259&view=rev
Log:
fix deleting rows from the data table
Modified:
trunk/tools/RosTE/GUI/DeleteVM.cs
trunk/tools/RosTE/GUI/MainForm.Designer.cs
trunk/tools/RosTE/GUI/MainForm.resx
trunk/tools/RosTE/GUI/VMDataBase.cs
Modified: trunk/tools/RosTE/GUI/DeleteVM.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/DeleteVM.cs?rev=27…
==============================================================================
--- trunk/tools/RosTE/GUI/DeleteVM.cs (original)
+++ trunk/tools/RosTE/GUI/DeleteVM.cs Fri Jun 22 14:47:24 2007
@@ -10,6 +10,11 @@
{
public partial class DeleteVM : Form
{
+ public bool DeleteFullVM
+ {
+ get { return deleteFullVM.Checked; }
+ }
+
public DeleteVM(string text)
{
InitializeComponent();
Modified: trunk/tools/RosTE/GUI/MainForm.Designer.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/MainForm.Designer.…
==============================================================================
--- trunk/tools/RosTE/GUI/MainForm.Designer.cs (original)
+++ trunk/tools/RosTE/GUI/MainForm.Designer.cs Fri Jun 22 14:47:24 2007
@@ -25,7 +25,6 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
- System.Windows.Forms.ListViewItem listViewItem1 = new
System.Windows.Forms.ListViewItem("ReactOS", 0);
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.VirtMachListView = new System.Windows.Forms.ListView();
this.columnName = new System.Windows.Forms.ColumnHeader();
@@ -74,8 +73,6 @@
this.columnAudio,
this.columnDebug});
this.VirtMachListView.FullRowSelect = true;
- this.VirtMachListView.Items.AddRange(new System.Windows.Forms.ListViewItem[]
{
- listViewItem1});
this.VirtMachListView.Location = new System.Drawing.Point(12, 52);
this.VirtMachListView.Name = "VirtMachListView";
this.VirtMachListView.Size = new System.Drawing.Size(516, 237);
Modified: trunk/tools/RosTE/GUI/MainForm.resx
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/MainForm.resx?rev=…
==============================================================================
--- trunk/tools/RosTE/GUI/MainForm.resx (original)
+++ trunk/tools/RosTE/GUI/MainForm.resx Fri Jun 22 14:47:24 2007
@@ -184,12 +184,12 @@
<data name="toolbarImageAdd.Image" type="System.Drawing.Bitmap,
System.Drawing"
mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAPhJREFUOE/Fk8sK
- glAQhiu6EdErWSHhwl0dL7lw52v4XFnQfVVtupPae1TW5C8F3UMhEj7OwTPzzz/HMRb71SMIQsYwjJRp
- mokoNeJMrlKZLx799YS9ruvZUEKSUvRsZ0NWs0GSUjuIopgLJYDqjmtTs2WRn7xnjOW/CqBfjuOSfnAa
- 1q8CSl3aaZpW+CiAPi+cUL0i8Ed36wQOVE32bs6DuCcxvHTcjY9NSMQKOt32Hd1e570ALm0w7FN/0PvI
- WwePNseTEQG+UsbnvLb42sFjT0iYL2YBslryQs8BBFbrZUBkgdl8SiCSAIZHVtkBYI9/4+sg/SXgDMzW
- 31aooBNSAAAAAElFTkSuQmCC
+ YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAPxJREFUOE9jYKAV
+ 8PDwYE9LS2Otr69nIscOxtDw4P+OzvZ/gfQ/EDs+Pp6DJIPCIuz/3L5z6/+u3Tv/h0WE/Pbx8eEiyQCQ
+ 7Xfu3v6/e8+u/0DNv0JDQ3kIGgDyr729PQtQMRvI6TADIqLCfkZHR/PhNQDkTyj+B7Ld1d357917d8Au
+ iIwO/4MkD1aHYRhI8M7dW0B8+z9II4gG4QMH96Pgg4cO4DYAFGhHjh7+f/jIIbwYpwvQnXnm7On/IOzs
+ 6giKTpgXsbsA3U8gDVeuXgbj8EiHPySnA5AB129cA2OyDbh85dJ/ECbLAFDiCY8M/Q3CIDYobxBMSAOi
+ AACfld9D5OrnOQAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolbarImageDel.Image" type="System.Drawing.Bitmap,
System.Drawing"
mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -204,19 +204,19 @@
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAttJREFUOE+FU11I
- U2EYXllBF3VjW91JklGUmCnCZCYqjswl/RCYNwOVTAm8mLkg6EQlYi7/2s/ZMBqlKQpd2I9S1rpwNiO8
- EQsKJJu5qcydv3l2zs45b+f7TMl10YGH853zPe/7Pe/zvt82TdLjuFBRJGafqJR37zmtaKQDaHu7Zkc4
- hWfHdn75+vTawPBEcgz+Jghil+eUPjBw9Ij80eeTOY4FURRBEASgqCj43ozJzw5nyIiDuFuSDA0NpXiy
- skLvrdclMRQCfioANE1BNBrBoOkoxPwTsDYzA2N1VyTERTGbSTwF+R8GzOaEODcHdG0tUIWFQId+4SQM
- QwEdXgSqpARoazPw09PwROWiGJzAebEiuyv9oMTPzgJtNgNdXAyRykoYPGtKqFLjCIPnKhLRmhpgysuB
- tliAm/RDV1qaRJ43ndR0tNx2vH3Uq3CvXgJlMMBqVRWQOq3iKit1Et3EXgSPuib365RoQwNWwo6+Bt/z
- Ydl256ZL09lp+xGJrKhGrQITDsGIySSSJYVdyU47jUUP3hUYJG5lCXPDalkoFrkfj8U4bBZ6Y9nqqckJ
- sBp1j+fX/hhLYS5OgFqGWsXzsf8mEIQ45iKDcQIkY3l5SXWbAZ5l4MXVOoEsK21PVkAaiztGLZa4oCpg
- GBo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Pxul4waoEGtILVa
+ hbNagdLrgSMIoAMBGL5lFbsdRAJhmCDE+M95iHu9QBUUAFNTA+70dAWNAFbq1RdMBPPzId7cDFRhIbAt
+ LYCkSlJShQRJUQC2uwsHs+o8TGZnA4rZLBON5fPjx1aCeXnANjUB20PiOtEUroMG1unAJ6NgxN0yyhuX
+ yavXfyZ1OuVTe5u0sBDCbiOEQiGYansokdp9CuL8c5n+dtxx9YrBfv9Oj83WMd9ueyQgoDX6h656and+
+ A3eWLzBoR3SlAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolbarExit.Image" type="System.Drawing.Bitmap,
System.Drawing"
mimetype="application/x-microsoft.net.object.bytearray.base64">
Modified: trunk/tools/RosTE/GUI/VMDataBase.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/VMDataBase.cs?rev=…
==============================================================================
--- trunk/tools/RosTE/GUI/VMDataBase.cs (original)
+++ trunk/tools/RosTE/GUI/VMDataBase.cs Fri Jun 22 14:47:24 2007
@@ -65,6 +65,15 @@
return dt.Rows.Count;
}
+ private static void PrintRows(DataTable dt)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ string str = "row: " + i + ", VMConfigID: " +
dt.Rows[i]["VMConfigID"] + ", Path " + dt.Rows[i]["Path"];
+ MessageBox.Show(str);
+ }
+ }
+
public MainConfig(Data dataIn)
{
data = dataIn;
@@ -108,8 +117,8 @@
{
DataRow dr;
DataTable dt = data.DataSet.Tables["MainConfig"];
- //dt.Rows.re.RemoveAt(index);
- //dr = dt.LoadDataRow(
+ //dt.Rows[index].Delete();
+ dt.Rows.RemoveAt(index);
}
public void SaveMainConfig()