Skip to content

Commit 93dbf26

Browse files
committed
Style Fixups
1 parent b4554d3 commit 93dbf26

12 files changed

+47
-24
lines changed

ReactiveUI.Platforms/Cocoa/ReactiveCollectionViewCell.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public abstract class ReactiveCollectionViewCell : UICollectionViewCell, IReacti
2828

2929
public event PropertyChangingEventHandler PropertyChanging;
3030

31-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
31+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
32+
{
3233
var handler = PropertyChanging;
3334
if (handler != null) {
3435
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveCollectionViewController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public abstract class ReactiveCollectionViewController : UICollectionViewControl
3030

3131
public event PropertyChangingEventHandler PropertyChanging;
3232

33-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
33+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
34+
{
3435
var handler = PropertyChanging;
3536
if (handler != null) {
3637
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveCollectionViewSource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ protected override void Dispose(bool disposing)
148148

149149
public event PropertyChangingEventHandler PropertyChanging;
150150

151-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
151+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
152+
{
152153
var handler = PropertyChanging;
153154
if (handler != null) {
154155
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveImageView.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public abstract class ReactiveImageView : NSImageView, IReactiveNotifyPropertyCh
4141

4242
public event PropertyChangingEventHandler PropertyChanging;
4343

44-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
44+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
45+
{
4546
var handler = PropertyChanging;
4647
if (handler != null) {
4748
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveNSView.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ protected ReactiveView(RectangleF size) : base(size)
5757

5858
public event PropertyChangingEventHandler PropertyChanging;
5959

60-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
60+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
61+
{
6162
var handler = PropertyChanging;
6263
if (handler != null) {
6364
handler(this, args);
@@ -66,7 +67,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
6667

6768
public event PropertyChangedEventHandler PropertyChanged;
6869

69-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
70+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
71+
{
7072
var handler = PropertyChanged;
7173
if (handler != null) {
7274
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveNSViewController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ protected ReactiveViewController(string nibNameOrNull, NSBundle nibBundleOrNull)
5757

5858
public event PropertyChangingEventHandler PropertyChanging;
5959

60-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
60+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
61+
{
6162
var handler = PropertyChanging;
6263
if (handler != null) {
6364
handler(this, args);
@@ -66,7 +67,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
6667

6768
public event PropertyChangedEventHandler PropertyChanged;
6869

69-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
70+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
71+
{
7072
var handler = PropertyChanged;
7173
if (handler != null) {
7274
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewCell.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public abstract class ReactiveTableViewCell : UITableViewCell, IReactiveNotifyPr
3030

3131
public event PropertyChangingEventHandler PropertyChanging;
3232

33-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
33+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
34+
{
3435
var handler = PropertyChanging;
3536
if (handler != null) {
3637
handler(this, args);
@@ -39,7 +40,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
3940

4041
public event PropertyChangedEventHandler PropertyChanged;
4142

42-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
43+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
44+
{
4345
var handler = PropertyChanged;
4446
if (handler != null) {
4547
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public abstract class ReactiveTableViewController : NSTableViewController, IReac
3232

3333
public event PropertyChangingEventHandler PropertyChanging;
3434

35-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
35+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
36+
{
3637
var handler = PropertyChanging;
3738
if (handler != null) {
3839
handler(this, args);
@@ -41,7 +42,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
4142

4243
public event PropertyChangedEventHandler PropertyChanged;
4344

44-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
45+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
46+
{
4547
var handler = PropertyChanged;
4648
if (handler != null) {
4749
handler(this, args);

ReactiveUI.Platforms/Cocoa/ReactiveTableViewSource.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ public object ItemAt(NSIndexPath indexPath)
231231

232232
public event PropertyChangingEventHandler PropertyChanging;
233233

234-
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args) {
234+
void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs args)
235+
{
235236
var handler = PropertyChanging;
236237
if (handler != null) {
237238
handler(this, args);
@@ -240,7 +241,8 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
240241

241242
public event PropertyChangedEventHandler PropertyChanged;
242243

243-
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args) {
244+
void IReactiveObjectExtension.RaisePropertyChanged(PropertyChangedEventArgs args)
245+
{
244246
var handler = PropertyChanged;
245247
if (handler != null) {
246248
handler(this, args);

ReactiveUI/IReactiveObjectExtension.cs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@
99
using Splat;
1010
using System.Collections.Generic;
1111

12-
namespace ReactiveUI {
13-
14-
public interface IReactiveObjectExtension : IEnableLogger {
12+
namespace ReactiveUI
13+
{
14+
public interface IReactiveObjectExtension : IEnableLogger
15+
{
1516
event PropertyChangingEventHandler PropertyChanging;
1617
event PropertyChangedEventHandler PropertyChanged;
1718

1819
void RaisePropertyChanging(PropertyChangingEventArgs args);
1920
void RaisePropertyChanged(PropertyChangedEventArgs args);
2021
}
2122

22-
public static class IReactiveExtensionExtensions {
23+
public static class IReactiveExtensionExtensions
24+
{
2325
static ConditionalWeakTable<IReactiveObjectExtension, ExtensionState> state = new ConditionalWeakTable<IReactiveObjectExtension, ExtensionState>();
2426

2527
internal static void setupReactiveExtension(this IReactiveObjectExtension This) {
@@ -88,7 +90,8 @@ internal static void raisePropertyChanged(this IReactiveObjectExtension This, st
8890
}, s.ChangedSubject);
8991
}
9092

91-
internal static bool areChangeNotificationsEnabled(this IReactiveObjectExtension This) {
93+
internal static bool areChangeNotificationsEnabled(this IReactiveObjectExtension This)
94+
{
9295
var s = state.GetOrCreateValue(This);
9396

9497
return (Interlocked.Read(ref s.ChangeNotificationsSuppressed) == 0);
@@ -166,8 +169,10 @@ public static void RaisePropertyChanging(this IReactiveObjectExtension This, [Ca
166169
This.raisePropertyChanging(propertyName);
167170
}
168171

169-
class ExtensionState {
170-
public ExtensionState() {
172+
class ExtensionState
173+
{
174+
public ExtensionState()
175+
{
171176
ChangingSubject = new Subject<IObservedChange<object, object>>();
172177
ChangedSubject = new Subject<IObservedChange<object, object>>();
173178
ThrownExceptions = new ScheduledSubject<Exception>(Scheduler.Immediate, RxApp.DefaultExceptionHandler);

0 commit comments

Comments
 (0)