[longomatch] Use ProjectID in more places



commit eccaf16e7b67d55fc5c960b53ca1deefb5e4c734
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Mar 25 17:50:49 2015 +0100

    Use ProjectID in more places

 LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs 
b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
index 5272469..70acda7 100644
--- a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
@@ -260,7 +260,7 @@ namespace LongoMatch.Gui.Panel
                                
                        deletedProjects = new List<ProjectDescription> ();
                        foreach (ProjectDescription selectedProject in selectedProjects) {
-                               if (openedProject != null && openedProject.ID == selectedProject.ID) {
+                               if (openedProject != null && openedProject.ID == selectedProject.ProjectID) {
                                        MessagesHelpers.WarningMessage (this,
                                                Catalog.GetString ("This Project is actually in use.") + "\n" 
+
                                                Catalog.GetString ("Close it first to allow its removal from 
the database"));
@@ -269,10 +269,10 @@ namespace LongoMatch.Gui.Panel
                                string msg = Catalog.GetString ("Do you really want to delete:") + "\n" + 
selectedProject.Title;
                                if (MessagesHelpers.QuestionMessage (this, msg)) {
                                        // Unload first
-                                       if (loadedProject != null && loadedProject.ID == selectedProject.ID) {
+                                       if (loadedProject != null && loadedProject.ID == 
selectedProject.ProjectID) {
                                                loadedProject = null;
                                        }
-                                       DB.RemoveProject (selectedProject.ID);
+                                       DB.RemoveProject (selectedProject.ProjectID);
                                        deletedProjects.Add (selectedProject);
                                }
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]