Skip to content

Commit fb7d76f

Browse files
author
Rik Bosch
committed
code formatting
1 parent ef521f3 commit fb7d76f

2 files changed

Lines changed: 23 additions & 141 deletions

File tree

ReactiveUI.Platforms/Winforms/ReactiveBindingList.cs

Lines changed: 12 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public class ReactiveBindingList<T> : ReactiveList<T>,
2222
{
2323
public ReactiveBindingList()
2424
: this(null)
25-
{
26-
}
25+
{}
2726

2827
#region Implementation of ICancelAddNew
2928

@@ -41,13 +40,7 @@ public void EndNew(int itemIndex)
4140

4241
#region Implementation of IRaiseItemChangedEvents
4342

44-
public bool RaisesItemChangedEvents
45-
{
46-
get
47-
{
48-
return base.ChangeTrackingEnabled;
49-
}
50-
}
43+
public bool RaisesItemChangedEvents { get { return base.ChangeTrackingEnabled; } }
5144

5245
#endregion
5346

@@ -57,8 +50,7 @@ public bool RaisesItemChangedEvents
5750
/// <param name="items"></param>
5851
public ReactiveBindingList(IEnumerable<T> items)
5952
: base(items)
60-
{
61-
}
53+
{}
6254

6355
protected override void raiseCollectionChanged(NotifyCollectionChangedEventArgs e)
6456
{
@@ -100,77 +92,23 @@ public void RemoveSort()
10092
throw new NotSupportedException();
10193
}
10294

103-
public bool AllowNew
104-
{
105-
get
106-
{
107-
return true;
108-
}
109-
}
95+
public bool AllowNew { get { return true; } }
11096

111-
public bool AllowEdit
112-
{
113-
get
114-
{
115-
return true;
116-
}
117-
}
97+
public bool AllowEdit { get { return true; } }
11898

119-
public bool AllowRemove
120-
{
121-
get
122-
{
123-
return true;
124-
}
125-
}
99+
public bool AllowRemove { get { return true; } }
126100

127-
public bool SupportsChangeNotification
128-
{
129-
get
130-
{
131-
return true;
132-
}
133-
}
101+
public bool SupportsChangeNotification { get { return true; } }
134102

135-
public bool SupportsSearching
136-
{
137-
get
138-
{
139-
return false;
140-
}
141-
}
103+
public bool SupportsSearching { get { return false; } }
142104

143-
public bool SupportsSorting
144-
{
145-
get
146-
{
147-
return false;
148-
}
149-
}
105+
public bool SupportsSorting { get { return false; } }
150106

151-
public bool IsSorted
152-
{
153-
get
154-
{
155-
return false;
156-
}
157-
}
107+
public bool IsSorted { get { return false; } }
158108

159-
public PropertyDescriptor SortProperty
160-
{
161-
get
162-
{
163-
return null;
164-
}
165-
}
109+
public PropertyDescriptor SortProperty { get { return null; } }
166110

167-
public ListSortDirection SortDirection
168-
{
169-
get
170-
{
171-
return ListSortDirection.Ascending;
172-
}
173-
}
111+
public ListSortDirection SortDirection { get { return ListSortDirection.Ascending; } }
174112

175113
public event ListChangedEventHandler ListChanged;
176114

ReactiveUI.Platforms/Winforms/ReactiveDerivedBindingListMixins.cs

Lines changed: 11 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ namespace ReactiveUI.Winforms
1414
/// that are automatically updated when the respective Model collection is updated.
1515
/// </summary>
1616
public interface IReactiveDerivedBindingList<T> : IReactiveDerivedList<T>, IBindingList
17-
{
18-
}
17+
{}
1918

2019
class ReactiveDerivedBindingList<TSource, TValue> : ReactiveDerivedCollection<TSource, TValue>,
2120
IReactiveDerivedBindingList<TValue>
@@ -27,8 +26,7 @@ public ReactiveDerivedBindingList(
2726
Func<TValue, TValue, int> orderer,
2827
IObservable<Unit> signalReset)
2928
: base(source, selector, filter, orderer, signalReset)
30-
{
31-
}
29+
{}
3230

3331
protected override void raiseCollectionChanged(NotifyCollectionChangedEventArgs e)
3432
{
@@ -72,77 +70,23 @@ public void RemoveSort()
7270
throw new NotSupportedException();
7371
}
7472

75-
public bool AllowNew
76-
{
77-
get
78-
{
79-
return false;
80-
}
81-
}
73+
public bool AllowNew { get { return false; } }
8274

83-
public bool AllowEdit
84-
{
85-
get
86-
{
87-
return false;
88-
}
89-
}
75+
public bool AllowEdit { get { return false; } }
9076

91-
public bool AllowRemove
92-
{
93-
get
94-
{
95-
return false;
96-
}
97-
}
77+
public bool AllowRemove { get { return false; } }
9878

99-
public bool SupportsChangeNotification
100-
{
101-
get
102-
{
103-
return true;
104-
}
105-
}
79+
public bool SupportsChangeNotification { get { return true; } }
10680

107-
public bool SupportsSearching
108-
{
109-
get
110-
{
111-
return false;
112-
}
113-
}
81+
public bool SupportsSearching { get { return false; } }
11482

115-
public bool SupportsSorting
116-
{
117-
get
118-
{
119-
return false;
120-
}
121-
}
83+
public bool SupportsSorting { get { return false; } }
12284

123-
public bool IsSorted
124-
{
125-
get
126-
{
127-
return false;
128-
}
129-
}
85+
public bool IsSorted { get { return false; } }
13086

131-
public PropertyDescriptor SortProperty
132-
{
133-
get
134-
{
135-
return null;
136-
}
137-
}
87+
public PropertyDescriptor SortProperty { get { return null; } }
13888

139-
public ListSortDirection SortDirection
140-
{
141-
get
142-
{
143-
return ListSortDirection.Ascending;
144-
}
145-
}
89+
public ListSortDirection SortDirection { get { return ListSortDirection.Ascending; } }
14690

14791
public event ListChangedEventHandler ListChanged;
14892

0 commit comments

Comments
 (0)