1212using NETworkManager . ViewModels ;
1313using MahApps . Metro . Controls ;
1414using MahApps . Metro . Controls . Dialogs ;
15- using System . Windows . Markup ;
1615using NETworkManager . Views . Applications ;
1716using NETworkManager . Views . Settings ;
1817using NETworkManager . Models . Settings ;
2120using System . Collections . Generic ;
2221using NETworkManager . Views ;
2322using NETworkManager . Helpers ;
23+ using System . Runtime . CompilerServices ;
2424
2525namespace NETworkManager
2626{
@@ -29,7 +29,7 @@ public partial class MainWindow : MetroWindow, INotifyPropertyChanged
2929 #region PropertyChangedEventHandler
3030 public event PropertyChangedEventHandler PropertyChanged ;
3131
32- private void OnPropertyChanged ( string propertyName )
32+ protected virtual void OnPropertyChanged ( [ CallerMemberName ] string propertyName = null )
3333 {
3434 PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
3535 }
@@ -62,7 +62,7 @@ public bool ApplicationView_Expand
6262 ClearSearchFilterOnApplicationListMinimize ( ) ;
6363
6464 _applicationView_Expand = value ;
65- OnPropertyChanged ( "ApplicationView_Expand" ) ;
65+ OnPropertyChanged ( ) ;
6666 }
6767 }
6868
@@ -79,7 +79,7 @@ public bool IsTextBoxSearchFocused
7979 ClearSearchFilterOnApplicationListMinimize ( ) ;
8080
8181 _isTextBoxSearchFocused = value ;
82- OnPropertyChanged ( "IsTextBoxSearchFocused" ) ;
82+ OnPropertyChanged ( ) ;
8383 }
8484 }
8585
@@ -96,7 +96,7 @@ public bool OpenApplicationList
9696 ClearSearchFilterOnApplicationListMinimize ( ) ;
9797
9898 _openApplicationList = value ;
99- OnPropertyChanged ( "OpenApplicationList" ) ;
99+ OnPropertyChanged ( ) ;
100100 }
101101 }
102102
@@ -113,7 +113,7 @@ public bool IsMouseOverApplicationList
113113 ClearSearchFilterOnApplicationListMinimize ( ) ;
114114
115115 _isMouseOverApplicationList = value ;
116- OnPropertyChanged ( "IsMouseOverApplicationList" ) ;
116+ OnPropertyChanged ( ) ;
117117 }
118118 }
119119
@@ -136,7 +136,7 @@ public ApplicationViewInfo SelectedApplicationViewInfo
136136 ChangeApplicationView ( value . Name ) ;
137137
138138 _selectedApplicationViewInfo = value ;
139- OnPropertyChanged ( "SelectedApplicationViewInfo" ) ;
139+ OnPropertyChanged ( ) ;
140140 }
141141 }
142142
@@ -178,7 +178,7 @@ public string SearchText
178178 // Show note when there was nothing found
179179 SearchNothingFound = filteredCollectionCount == 0 ;
180180
181- OnPropertyChanged ( "SearchText" ) ;
181+ OnPropertyChanged ( ) ;
182182 }
183183 }
184184
@@ -192,7 +192,7 @@ public bool SearchNothingFound
192192 return ;
193193
194194 _searchNothingFound = value ;
195- OnPropertyChanged ( "SearchNothingFound" ) ;
195+ OnPropertyChanged ( ) ;
196196 }
197197 }
198198
@@ -208,7 +208,7 @@ public bool ShowSettingsView
208208 return ;
209209
210210 _showSettingsView = value ;
211- OnPropertyChanged ( "ShowSettingsView" ) ;
211+ OnPropertyChanged ( ) ;
212212 }
213213 }
214214
@@ -222,7 +222,7 @@ public string Version
222222 return ;
223223
224224 _version = value ;
225- OnPropertyChanged ( "Version" ) ;
225+ OnPropertyChanged ( ) ;
226226 }
227227 }
228228 #endregion
0 commit comments