[longomatch/gameunits: 3/12] Fix lead/lag time changes not beeing applied



commit 687545747503a0cc81fc02e1804d3ddf7e99d444
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Nov 4 22:24:07 2011 +0100

    Fix lead/lag time changes not beeing applied

 LongoMatch.GUI/Gui/Component/CategoryProperties.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/CategoryProperties.cs b/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
index 109e160..1e6eef6 100644
--- a/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
+++ b/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
@@ -52,6 +52,8 @@ namespace LongoMatch.Gui.Component
 			this.Build();
 			subcategoriestreeview1.SubCategoriesDeleted += OnSubcategoriesDeleted;
 			subcategoriestreeview1.SubCategorySelected += OnSubcategorySelected;
+			leadtimebutton.ValueChanged += OnLeadTimeChanged;;
+			lagtimebutton.ValueChanged += OnLagTimeChanged;
 		}
 		
 		public ITemplateProvider<SubCategoryTemplate, string> Template {
@@ -167,12 +169,12 @@ namespace LongoMatch.Gui.Component
 				cat.Color=colorbutton1.Color;
 		}
 
-		protected virtual void OnTimeadjustwidget1LeadTimeChanged(object sender, System.EventArgs e)
+		protected virtual void OnLeadTimeChanged(object sender, System.EventArgs e)
 		{
 			cat.Start = new Time{Seconds=(int)leadtimebutton.Value};
 		}
 
-		protected virtual void OnTimeadjustwidget1LagTimeChanged(object sender, System.EventArgs e)
+		protected virtual void OnLagTimeChanged(object sender, System.EventArgs e)
 		{
 			cat.Stop = new Time{Seconds=(int)lagtimebutton.Value};
 		}



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