[longomatch] Save templates correctly from the editor



commit 32c05356b0603c1a6dc5fcc8d92c35d4a2cfc2b5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Jun 10 11:18:34 2014 +0200

    Save templates correctly from the editor

 .../Gui/Component/AnalysisTemplateEditor.cs        |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs 
b/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
index c114034..dd0567e 100644
--- a/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
@@ -17,6 +17,8 @@
 //
 using System;
 using LongoMatch.Store.Templates;
+using LongoMatch.Common;
+using LongoMatch.Gui.Helpers;
 
 namespace LongoMatch.Gui.Component
 {
@@ -51,12 +53,18 @@ namespace LongoMatch.Gui.Component
                        }
                }
                
-               void HandleNewMarkEvent (LongoMatch.Store.Category category)
+               void HandleCategorySelected (LongoMatch.Store.Category category)
                {
                        categoryproperties.Visible = true;
                        categoryproperties.Category = category;
                }
                
+               void HandleSaveClicked (object sender, EventArgs e)
+               {
+                       if (template != null) {
+                               Config.CategoriesTemplatesProvider.Update (template);
+                       }
+               }
        }
 }
 


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