Changeset 10 for trunk/sources
- Timestamp:
- 02/20/08 12:45:43 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure.GUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.cs
r9 r10 650 650 try { 651 651 ClearTemporaryFiles(); 652 653 652 if(!DownloadFiles()) { 654 653 return; 655 654 } 656 657 655 OnDeletePlugins(); 658 656 OnPreUpgradePlugins(); 659 660 657 PluginManager.Manager.UnloadAllPlugins(); 661 662 658 BackupOldFiles(); 663 659 DeleteOldFiles(); 664 660 InstallNewFiles(); 665 666 661 PluginManager.Manager.LoadAllPlugins(); 667 662 InitializePlugins(); 668 663 OnPostUpgradePlugins(); 669 664 OnInstallPlugins(); 670 671 InitializePlugins();672 673 665 ClearTemporaryFiles(); 674 666 } catch(Exception e) { 675 667 ShowErrorDialog(e + ""); 676 668 } 677 678 } 679 669 } 680 670 private void OnDeletePlugins() { 681 671 allTags.ForEach(delegate(PluginTag tag) { … … 688 678 }); 689 679 } 690 691 680 private void OnInstallPlugins() { 692 681 allTags.ForEach(delegate(PluginTag tag) { … … 839 828 filesString += fs + "\n"; 840 829 } 841 DialogResult result = MessageBox.Show("Deleting: " + filesString, "Warning: deleting files", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); 842 if(result == DialogResult.OK) { 843 foreach(string copiedFile in copiedFiles) { 844 File.Delete(copiedFile); 845 } 830 foreach(string copiedFile in copiedFiles) { 831 File.Delete(copiedFile); 846 832 } 847 833 throw e; -
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/PluginNameTransform.cs
r8 r10 25 25 using ICSharpCode.SharpZipLib.Core; 26 26 using System.Diagnostics; 27 using System.Windows.Forms; 27 28 28 29 namespace HeuristicLab.PluginInfrastructure.GUI { … … 32 33 class PluginNameTransform : INameTransform{ 33 34 34 private string pluginDir = HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.PluginDir+"\\";35 private string pluginDir = Application.StartupPath + "\\" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.PluginDir + "\\"; 35 36 #region INameTransform Members 36 37
Note: See TracChangeset
for help on using the changeset viewer.