[tasque/transition: 203/213] Formatting



commit 04d696eae97d7896bd595dc91e9f676936586cfe
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sun Aug 19 21:44:09 2012 +0200

    Formatting

 src/libtasque/ReadOnlySortedNotifyCollection.cs |    2 +-
 src/libtasque/SortedNotifyCollection.cs         |   36 +++++++++++-----------
 2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/libtasque/ReadOnlySortedNotifyCollection.cs b/src/libtasque/ReadOnlySortedNotifyCollection.cs
index d06ca82..967a504 100644
--- a/src/libtasque/ReadOnlySortedNotifyCollection.cs
+++ b/src/libtasque/ReadOnlySortedNotifyCollection.cs
@@ -1,5 +1,5 @@
 // 
-// ReadOnlyNotifyCollection.cs
+// ReadOnlySortedNotifyCollection.cs
 //  
 // Author:
 //       Antonius Riha <antoniusriha gmail com>
diff --git a/src/libtasque/SortedNotifyCollection.cs b/src/libtasque/SortedNotifyCollection.cs
index c922f46..a3ef197 100644
--- a/src/libtasque/SortedNotifyCollection.cs
+++ b/src/libtasque/SortedNotifyCollection.cs
@@ -1,5 +1,5 @@
 // 
-// NotifyCollection.cs
+// SortedNotifyCollection.cs
 //  
 // Author:
 //       Antonius Riha <antoniusriha gmail com>
@@ -40,19 +40,11 @@ namespace Tasque
 			items = new ObservableCollection<T> ();
 		}
 
-		#region IEnumerable implementation
-		IEnumerator IEnumerable.GetEnumerator ()
-		{
-			return GetEnumerator ();
-		}
-
-		public IEnumerator<T> GetEnumerator ()
-		{
-			return items.GetEnumerator ();
-		}
-		#endregion
-
 		#region ICollection implementation
+		public int Count { get { return items.Count; } }
+		
+		public bool IsReadOnly { get { return false; } }
+		
 		public void Add (T item)
 		{
 			if (item == null)
@@ -97,12 +89,20 @@ namespace Tasque
 
 			return items.Remove (item);
 		}
-
-		public int Count { get { return items.Count; } }
-
-		public bool IsReadOnly { get { return false; } }
 		#endregion
-
+		
+		#region IEnumerable implementation
+		public IEnumerator<T> GetEnumerator ()
+		{
+			return items.GetEnumerator ();
+		}
+		
+		IEnumerator IEnumerable.GetEnumerator ()
+		{
+			return GetEnumerator ();
+		}
+		#endregion
+		
 		#region INotifyCollectionChanged implementation
 		public event NotifyCollectionChangedEventHandler CollectionChanged {
 			add { items.CollectionChanged += value; }



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