Skip to content

Commit 4df9ef3

Browse files
committed
Let’s move the backing fields closer to the actual properties which exposes them.
1 parent 1c4dcc1 commit 4df9ef3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CefSharp.Wpf.Example/Views/Main/MainViewModel.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,34 @@ namespace CefSharp.Wpf.Example.Views.Main
1010
public class MainViewModel : INotifyPropertyChanged
1111
{
1212
private string address;
13-
private IWpfWebBrowser webBrowser;
14-
private string addressEditable;
15-
private string title;
16-
private string outputMessage;
17-
1813
public string Address
1914
{
2015
get { return address; }
2116
set { PropertyChanged.ChangeAndNotify(ref address, value, () => Address); }
2217
}
2318

19+
private string addressEditable;
2420
public string AddressEditable
2521
{
2622
get { return addressEditable; }
2723
set { PropertyChanged.ChangeAndNotify(ref addressEditable, value, () => AddressEditable); }
2824
}
2925

26+
private string outputMessage;
3027
public string OutputMessage
3128
{
3229
get { return outputMessage; }
3330
set { PropertyChanged.ChangeAndNotify(ref outputMessage, value, () => OutputMessage); }
3431
}
3532

33+
private string title;
3634
public string Title
3735
{
3836
get { return title; }
3937
set { PropertyChanged.ChangeAndNotify(ref title, value, () => Title); }
4038
}
4139

40+
private IWpfWebBrowser webBrowser;
4241
public IWpfWebBrowser WebBrowser
4342
{
4443
get { return webBrowser; }

0 commit comments

Comments
 (0)