Skip to content

Commit ea957bc

Browse files
committed
Fix all the dumb hard tabs I added in 93dbf26
1 parent d379c89 commit ea957bc

10 files changed

+31
-32
lines changed

ReactiveUI.Platforms/Cocoa/ReactiveCollectionViewCell.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class ReactiveCollectionViewCell : UICollectionViewCell, IReacti
3131
public event PropertyChangingEventHandler PropertyChanging;
3232

3333
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
34-
{
34+
{
3535
var handler = PropertyChanging;
3636
if (handler != null) {
3737
handler(this, args);
@@ -40,7 +40,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
4040

4141
public event PropertyChangedEventHandler PropertyChanged;
4242

43-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
43+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
44+
{
4445
var handler = PropertyChanged;
4546
if (handler != null) {
4647
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveCollectionViewController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class ReactiveCollectionViewController : UICollectionViewControl
3131
public event PropertyChangingEventHandler PropertyChanging;
3232

3333
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
34-
{
34+
{
3535
var handler = PropertyChanging;
3636
if (handler != null) {
3737
handler(this, args);
@@ -40,7 +40,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
4040

4141
public event PropertyChangedEventHandler PropertyChanged;
4242

43-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
43+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
44+
{
4445
var handler = PropertyChanged;
4546
if (handler != null) {
4647
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveImageView.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public abstract class ReactiveImageView : NSImageView, IReactiveNotifyPropertyCh
4343
public event PropertyChangingEventHandler PropertyChanging;
4444

4545
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
46-
{
46+
{
4747
var handler = PropertyChanging;
4848
if (handler != null) {
4949
handler(this, args);
@@ -52,7 +52,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
5252

5353
public event PropertyChangedEventHandler PropertyChanged;
5454

55-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
55+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
56+
{
5657
var handler = PropertyChanged;
5758
if (handler != null) {
5859
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveNSView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected ReactiveView(RectangleF size) : base(size)
5959
public event PropertyChangingEventHandler PropertyChanging;
6060

6161
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
62-
{
62+
{
6363
var handler = PropertyChanging;
6464
if (handler != null) {
6565
handler(this, args);
@@ -69,7 +69,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
6969
public event PropertyChangedEventHandler PropertyChanged;
7070

7171
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
72-
{
72+
{
7373
var handler = PropertyChanged;
7474
if (handler != null) {
7575
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveNSViewController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected ReactiveViewController(string nibNameOrNull, NSBundle nibBundleOrNull)
5858
public event PropertyChangingEventHandler PropertyChanging;
5959

6060
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
61-
{
61+
{
6262
var handler = PropertyChanging;
6363
if (handler != null) {
6464
handler(this, args);
@@ -68,7 +68,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
6868
public event PropertyChangedEventHandler PropertyChanged;
6969

7070
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
71-
{
71+
{
7272
var handler = PropertyChanged;
7373
if (handler != null) {
7474
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewCell.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public abstract class ReactiveTableViewCell : UITableViewCell, IReactiveNotifyPr
3232
public event PropertyChangingEventHandler PropertyChanging;
3333

3434
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
35-
{
35+
{
3636
var handler = PropertyChanging;
3737
if (handler != null) {
3838
handler(this, args);
@@ -42,7 +42,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
4242
public event PropertyChangedEventHandler PropertyChanged;
4343

4444
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
45-
{
45+
{
4646
var handler = PropertyChanged;
4747
if (handler != null) {
4848
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public abstract class ReactiveTableViewController : NSTableViewController, IReac
3333
public event PropertyChangingEventHandler PropertyChanging;
3434

3535
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
36-
{
36+
{
3737
var handler = PropertyChanging;
3838
if (handler != null) {
3939
handler(this, args);
@@ -43,7 +43,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
4343
public event PropertyChangedEventHandler PropertyChanged;
4444

4545
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
46-
{
46+
{
4747
var handler = PropertyChanged;
4848
if (handler != null) {
4949
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewSource.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public object ItemAt(NSIndexPath indexPath)
232232
public event PropertyChangingEventHandler PropertyChanging;
233233

234234
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
235-
{
235+
{
236236
var handler = PropertyChanging;
237237
if (handler != null) {
238238
handler(this, args);
@@ -242,7 +242,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
242242
public event PropertyChangedEventHandler PropertyChanged;
243243

244244
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
245-
{
245+
{
246246
var handler = PropertyChanged;
247247
if (handler != null) {
248248
handler(this, args);
@@ -311,8 +311,10 @@ public static IDisposable BindTo<TCell>(
311311
{
312312
var source = new ReactiveTableViewSource(tableView);
313313
if (initSource != null) initSource(source);
314+
314315
var bind = sectionsObservable.BindTo(source, x => x.Data);
315316
tableView.Source = source;
317+
316318
return new CompositeDisposable(bind, source);
317319
}
318320

@@ -339,15 +341,13 @@ public static IDisposable BindTo<TCell>(
339341
where TCell : UITableViewCell
340342
{
341343
return sourceObservable
342-
.Select(
343-
src => new[]
344-
{
345-
new TableSectionInformation<TCell>(
346-
src,
347-
cellKey,
348-
sizeHint,
349-
initializeCellAction)
350-
})
344+
.Select(src => new[] {
345+
new TableSectionInformation<TCell>(
346+
src,
347+
cellKey,
348+
sizeHint,
349+
initializeCellAction),
350+
})
351351
.BindTo(tableView, initSource);
352352
}
353353

@@ -376,6 +376,7 @@ public static IDisposable BindTo<TCell>(
376376
var type = typeof(TCell);
377377
var cellKey = new NSString(type.ToString());
378378
tableView.RegisterClassForCellReuse(type, new NSString(cellKey));
379+
379380
return sourceObservable
380381
.BindTo(tableView, cellKey, sizeHint, initializeCellAction, initSource);
381382
}

ReactiveUI.Platforms/Cocoa/UIKitObservableForPropertyBase.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ namespace ReactiveUI.Cocoa
1212
public abstract class UIKitObservableForPropertyBase :
1313
ICreatesObservableForProperty
1414
{
15-
#region ICreatesObservableForProperty implementation
16-
1715
public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false)
1816
{
19-
if(beforeChanged)
17+
if (beforeChanged)
2018
return 0;
2119

2220
var match = config.Keys
@@ -33,7 +31,7 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang
3331

3432
public IObservable<IObservedChange<object, object>> GetNotificationForProperty(object sender, string propertyName, bool beforeChanged = false)
3533
{
36-
if(beforeChanged)
34+
if (beforeChanged)
3735
return Observable.Never<IObservedChange<object, object>>();
3836

3937
var type = sender.GetType();
@@ -50,8 +48,6 @@ public IObservable<IObservedChange<object, object>> GetNotificationForProperty(o
5048
return match.CreateObservable((NSObject) sender, propertyName);
5149
}
5250

53-
#endregion
54-
5551
internal class ObservablePropertyInfo
5652
{
5753
public int Affinity;

ReactiveUI.Platforms/Cocoa/ViewModelViewHost.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
#if UIKIT
77
using MonoTouch.UIKit;
8-
98
using NSView = MonoTouch.UIKit.UIView;
109
using NSViewController = MonoTouch.UIKit.UIViewController;
1110
#else

0 commit comments

Comments
 (0)