[longomatch] Clear periods filter too



commit e013c792e21bfab63f58d748dc002aa0664312a0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Oct 9 13:20:01 2014 +0200

    Clear periods filter too

 LongoMatch.Core/Common/EventsFilter.cs |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/LongoMatch.Core/Common/EventsFilter.cs b/LongoMatch.Core/Common/EventsFilter.cs
index c6c528f..4732946 100644
--- a/LongoMatch.Core/Common/EventsFilter.cs
+++ b/LongoMatch.Core/Common/EventsFilter.cs
@@ -63,24 +63,11 @@ namespace LongoMatch.Core.Common
                        protected set;
                }
 
-               public void ClearEventTypesFilter (bool update=true)
+               public void ClearAll (bool update=true)
                {
                        eventsFilter.Clear ();
-                       if (update)
-                               Update ();
-               }
-
-               public void ClearPlayersFilter (bool update=true)
-               {
                        playersFilter.Clear ();
-                       if (update)
-                               Update ();
-               }
-
-               public void ClearAll (bool update=true)
-               {
-                       ClearEventTypesFilter (false);
-                       ClearPlayersFilter (false);
+                       periodsFilter.Clear ();
                        if (update)
                                Update ();
                }


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