Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c83fa8a

Browse files
committed
🎨 Use C# 6 features for fun and profit
And remove unused usings etc.
1 parent 3711fdb commit c83fa8a

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/GitHub.UI.Reactive/Controls/SimpleViewUserControl.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
using System;
2-
using System.Diagnostics;
32
using System.Reactive.Linq;
43
using System.Reactive.Subjects;
4+
using System.Windows;
55
using System.Windows.Controls;
6-
using System.Windows.Documents;
76
using System.Windows.Input;
8-
using System.Windows.Navigation;
9-
using ReactiveUI;
10-
using System.Windows;
117
using GitHub.ViewModels;
128
using NullGuard;
9+
using ReactiveUI;
1310

1411
namespace GitHub.UI
1512
{
@@ -38,11 +35,11 @@ public SimpleViewUserControl()
3835
});
3936
}
4037

41-
public IObservable<object> Done { get { return close; } }
38+
public IObservable<object> Done => close;
4239

43-
public IObservable<object> Cancel { get { return cancel; } }
40+
public IObservable<object> Cancel => cancel;
4441

45-
public IObservable<bool> IsBusy{ get { return isBusy; } }
42+
public IObservable<bool> IsBusy => isBusy;
4643

4744
protected void NotifyDone()
4845
{
@@ -110,7 +107,7 @@ public TViewModel ViewModel
110107
TViewModel IViewFor<TViewModel>.ViewModel
111108
{
112109
get { return ViewModel; }
113-
set { ViewModel = (TViewModel)value; }
110+
set { ViewModel = value; }
114111
}
115112
}
116113
}

src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using GitHub.Extensions;
88
using GitHub.UI;
99
using GitHub.ViewModels;
10-
using NullGuard;
1110
using ReactiveUI;
1211
using System.ComponentModel.Composition;
1312

0 commit comments

Comments
 (0)