@@ -178,7 +178,7 @@ public MainWindow()
178178
179179 // Load templates
180180 TemplateManager . LoadNetworkInterfaceConfigTemplates ( ) ;
181- TemplateManager . LoadWakeOnLanTemplates ( ) ;
181+ TemplateManager . LoadWakeOnLANTemplates ( ) ;
182182
183183 _isLoading = false ;
184184 }
@@ -244,9 +244,9 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
244244 // Save templates
245245 if ( TemplateManager . NetworkInterfaceConfigTemplatesChanged && ! ImportExportManager . ForceRestart )
246246 TemplateManager . SaveNetworkInterfaceConfigTemplates ( ) ;
247-
248- if ( TemplateManager . WakeOnLanTemplatesChanged && ! ImportExportManager . ForceRestart )
249- TemplateManager . SaveWakeOnLanTemplates ( ) ;
247+
248+ if ( TemplateManager . WakeOnLANTemplatesChanged && ! ImportExportManager . ForceRestart )
249+ TemplateManager . SaveWakeOnLANTemplates ( ) ;
250250
251251 // Save settings
252252 if ( SettingsManager . Current . SettingsChanged && ! ImportExportManager . ForceRestart )
@@ -271,6 +271,7 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
271271 PingView pingView ;
272272 TracerouteView tracerouteView ;
273273 DNSLookupView dnsLookupView ;
274+ OUILookupView ouiLookupView ;
274275
275276 private ApplicationView . Name ? currentApplicationViewName = null ;
276277
@@ -329,6 +330,12 @@ private void ChangeApplicationView(ApplicationView.Name name)
329330
330331 contentControlApplication . Content = dnsLookupView ;
331332 break ;
333+ case ApplicationView . Name . OUILookup :
334+ if ( ouiLookupView == null )
335+ ouiLookupView = new OUILookupView ( ) ;
336+
337+ contentControlApplication . Content = ouiLookupView ;
338+ break ;
332339 }
333340
334341 currentApplicationViewName = name ;
@@ -614,7 +621,7 @@ private void CloseApplicationAction()
614621
615622 private void RestartApplication ( )
616623 {
617- Process . Start ( Assembly . GetExecutingAssembly ( ) . Location ) ;
624+ Process . Start ( ConfigurationManager . Current . ApplicationPath ) ;
618625
619626 _closeApplication = true ;
620627 Close ( ) ;
0 commit comments