[longomatch/redesign: 105/120] Use new templates manager



commit 4fafd6a874256d8ffd2b827a7cc760241bd96fb9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Mar 30 22:36:31 2011 +0200

    Use new templates manager

 LongoMatch/Gui/MainWindow.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index 19ee31e..5632a79 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -28,6 +28,7 @@ using LongoMatch.Common;
 using LongoMatch.Gui.Dialog;
 using LongoMatch.Handlers;
 using LongoMatch.Store;
+using LongoMatch.Store.Templates;
 using LongoMatch.Utils;
 using LongoMatch.Video.Capturer;
 using LongoMatch.Video.Common;
@@ -423,14 +424,14 @@ namespace LongoMatch.Gui
 
 		protected virtual void OnSectionsTemplatesManagerActivated(object sender, System.EventArgs e)
 		{
-			TemplatesManager tManager = new TemplatesManager(TemplatesManager.UseType.CategoriesTemplate);
+			var tManager = new TemplatesManager<Categories, Category>();
 			tManager.TransientFor = this;
 			tManager.Show();
 		}
 
 		protected virtual void OnTeamsTemplatesManagerActionActivated(object sender, System.EventArgs e)
 		{
-			TemplatesManager tManager = new TemplatesManager(TemplatesManager.UseType.TeamTemplate);
+			var tManager = new TemplatesManager<TeamTemplate, Player>();
 			tManager.TransientFor = this;
 			tManager.Show();
 		}



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