From: <nor...@us...> - 2007-06-22 00:57:18
|
Revision: 592 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=592&view=rev Author: northern_sky Date: 2007-06-21 17:57:15 -0700 (Thu, 21 Jun 2007) Log Message: ----------- update of appitem didn't work after recent updates due to formatting issue,fixed Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-06-21 23:40:06 UTC (rev 591) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-06-22 00:57:15 UTC (rev 592) @@ -436,7 +436,7 @@ // Launch File by item if (mpGuiMode) - curFileItem.UpdateLaunchInfo(); + curFileItem.UpdateLaunchInfo(); ProcessStartInfo procStart = new ProcessStartInfo(); @@ -501,13 +501,13 @@ g_Player.Stop(); } - //proc = new Process(); - //proc.EnableRaisingEvents = true; - //proc.Exited += new EventHandler(proc_Exited); + proc = new Process(); + /*proc.EnableRaisingEvents = true; + proc.Exited += new EventHandler(proc_Exited); - //proc.StartInfo = procStart; - //ProgramUtils.StartProcess(proc, this.WaitForExit); - Utils.StartProcess(procStart, this.WaitForExit); + proc.StartInfo = procStart; + ProgramUtils.StartProcess(proc, this.WaitForExit); + */Utils.StartProcess(procStart, this.WaitForExit); if (mpGuiMode) { @@ -897,34 +897,37 @@ try { sql = String.Format( - "update tblApplicationItem set" + - "title = '" + ProgramUtils.Encode(Title) + - "', shorttitle = '" + ProgramUtils.Encode(ShortTitle) + - "', filename = '" + ProgramUtils.Encode(Filename) + - "', arguments = '" + ProgramUtils.Encode(Arguments) + - "', windowstyle = '" + ProgramUtils.WindowStyleToStr(WindowStyle) + - "', startupdir = '" + ProgramUtils.Encode(StartupDir) + - "', useshellexecute = '" + ProgramUtils.BooleanToStr(UseShellExecute) + - "', usequotes = '" + ProgramUtils.BooleanToStr(UseQuotes) + - "', source_type = '" + ProgramUtils.ApplicationTypeToString(SourceType) + - "', source = '" + ProgramUtils.Encode(Source) + - "', imagefile = '" + ProgramUtils.Encode(Imagefile) + - "', filedirectory = '" + ProgramUtils.Encode(FileDirectory) + - "', imagedirectory = '" + ProgramUtils.Encode(ImageDirectory) + - "', validextensions = '" + ProgramUtils.Encode(ValidExtensions) + - "', importvalidimagesonly = '" + ProgramUtils.BooleanToStr(importValidImagesOnly) + - "', iposition = " + Position + - ", enabled = '" + ProgramUtils.BooleanToStr(Enabled) + - "', fatherID = '" + FatherID + - "', enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + - "', GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) + - "', pincode = '" + Pincode + - "', contentID = '" + ContentID + - "', systemDefault = '" + ProgramUtils.Encode(SystemDefault) + - "', WaitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + - "', preLaunch = '" + ProgramUtils.Encode(PreLaunch) + - "', postLaunch = '" + ProgramUtils.Encode(PostLaunch) + - "' where appID = " + AppID); + @"UPDATE + tblApplicationItem SET + + title = '" + ProgramUtils.Encode(Title) + @"', + shorttitle = '" + ProgramUtils.Encode(ShortTitle) + @"', + filename = '" + ProgramUtils.Encode(Filename) + @"', + arguments = '" + ProgramUtils.Encode(Arguments) + @"', + windowstyle = '" + ProgramUtils.WindowStyleToStr(WindowStyle) + @"', + startupdir = '" + ProgramUtils.Encode(StartupDir) + @"', + useshellexecute = '" + ProgramUtils.BooleanToStr(UseShellExecute) + @"', + usequotes = '" + ProgramUtils.BooleanToStr(UseQuotes) + @"', + source_type = '" + ProgramUtils.ApplicationTypeToString(SourceType) + @"', + source = '" + ProgramUtils.Encode(Source) + @"', + imagefile = '" + ProgramUtils.Encode(Imagefile) + @"', + filedirectory = '" + ProgramUtils.Encode(FileDirectory) + @"', + imagedirectory = '" + ProgramUtils.Encode(ImageDirectory) + @"', + validextensions = '" + ProgramUtils.Encode(ValidExtensions) + @"', + importvalidimagesonly = '" + ProgramUtils.BooleanToStr(importValidImagesOnly) + @"', + iposition = " + Position + @", + enabled = '" + ProgramUtils.BooleanToStr(Enabled) + @"', + fatherID = '" + FatherID + @"', + enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + @"', + GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) +@"', + pincode = '" + Pincode + @"', + contentID = '" + ContentID + @"', + systemDefault = '" + ProgramUtils.Encode(SystemDefault) + @"', + WaitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + @"', + preLaunch = '" + ProgramUtils.Encode(PreLaunch) + @"', + postLaunch = '" + ProgramUtils.Encode(PostLaunch) + @"' + + WHERE appID = " + AppID); sqlDB.Execute(sql); } catch (SQLiteException ex) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |