Skip to content

Commit 560a2a3

Browse files
committed
Design improved
1 parent eafb061 commit 560a2a3

22 files changed

Lines changed: 105 additions & 63 deletions

‎Source/NETworkManager/App.xaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
<ResourceDictionary Source="/Resources/Templates/ValidationErrorTemplates.xaml" />
2525
<!-- Styles -->
2626
<ResourceDictionary Source="/Resources/Styles/ButtonStyles.xaml" />
27+
<ResourceDictionary Source="/Resources/Styles/CheckBoxStyles.xaml" />
2728
<ResourceDictionary Source="/Resources/Styles/ContextMenuStyles.xaml" />
2829
<ResourceDictionary Source="/Resources/Styles/DataGridStyles.xaml" />
2930
<ResourceDictionary Source="/Resources/Styles/GroupBoxStyles.xaml" />
3031
<ResourceDictionary Source="/Resources/Styles/NumericUpDownStyles.xaml" />
3132
<ResourceDictionary Source="/Resources/Styles/PasswordBoxStyles.xaml" />
33+
<ResourceDictionary Source="/Resources/Styles/RadioButtonStyles.xaml" />
3234
<ResourceDictionary Source="/Resources/Styles/ScrollBarStyles.xaml" />
3335
<ResourceDictionary Source="/Resources/Styles/ScrollViewerStyles.xaml" />
3436
<ResourceDictionary Source="/Resources/Styles/TabControlStyles.xaml" />

‎Source/NETworkManager/MainWindow.xaml.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
358358
WakeOnLANView wakeOnLANView;
359359
SubnetCalculatorView subnetCalculatorView;
360360
ARPTableView arpTableView;
361-
WikiView wikiView;
361+
LookupView lookupView;
362362

363363
private ApplicationViewManager.Name? currentApplicationViewName = null;
364364

@@ -429,11 +429,11 @@ private void ChangeApplicationView(ApplicationViewManager.Name name)
429429

430430
contentControlApplication.Content = arpTableView;
431431
break;
432-
case ApplicationViewManager.Name.Wiki:
433-
if (wikiView == null)
434-
wikiView = new WikiView();
432+
case ApplicationViewManager.Name.Lookup:
433+
if (lookupView == null)
434+
lookupView = new LookupView();
435435

436-
contentControlApplication.Content = wikiView;
436+
contentControlApplication.Content = lookupView;
437437
break;
438438
}
439439

‎Source/NETworkManager/Models/Settings/SettingsInfo.cs‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -660,31 +660,31 @@ public bool Traceroute_ExpandStatistics
660660
}
661661
#endregion
662662

663-
#region Wiki
664-
private List<string> _wiki_MACAddressOrVendorHistory = new List<string>();
665-
public List<string> Wiki_MACAddressOrVendorHistory
663+
#region Lookup
664+
private List<string> _lookup_MACAddressOrVendorHistory = new List<string>();
665+
public List<string> Lookup_MACAddressOrVendorHistory
666666
{
667-
get { return _wiki_MACAddressOrVendorHistory; }
667+
get { return _lookup_MACAddressOrVendorHistory; }
668668
set
669669
{
670-
if (value == _wiki_MACAddressOrVendorHistory)
670+
if (value == _lookup_MACAddressOrVendorHistory)
671671
return;
672672

673-
_wiki_MACAddressOrVendorHistory = value;
673+
_lookup_MACAddressOrVendorHistory = value;
674674
SettingsChanged = true;
675675
}
676676
}
677677

678-
private List<string> _wiki_PortsHistory = new List<string>();
679-
public List<string> Wiki_PortsHistory
678+
private List<string> _lookup_PortsHistory = new List<string>();
679+
public List<string> Lookup_PortsHistory
680680
{
681-
get { return _wiki_PortsHistory; }
681+
get { return _lookup_PortsHistory; }
682682
set
683683
{
684-
if (value == _wiki_PortsHistory)
684+
if (value == _lookup_PortsHistory)
685685
return;
686686

687-
_wiki_PortsHistory = value;
687+
_lookup_PortsHistory = value;
688688
SettingsChanged = true;
689689
}
690690
}

‎Source/NETworkManager/NETworkManager.csproj‎

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<Compile Include="Validators\OpacityTextboxValidator.cs" />
213213
<Compile Include="ViewModels\Applications\DNSLookupViewModel.cs" />
214214
<Compile Include="ViewModels\Applications\SubnetCalculatorIPv4SplitterViewModel.cs" />
215-
<Compile Include="ViewModels\Applications\WikiOUILookupViewModel.cs" />
215+
<Compile Include="ViewModels\Applications\LookupOUILookupViewModel.cs" />
216216
<Compile Include="ViewModels\Applications\RemoteDesktopViewModel.cs" />
217217
<Compile Include="ViewModels\Help\HelpCommandLineViewModel.cs" />
218218
<Compile Include="ViewModels\Settings\SettingsApplicationRemoteDesktopViewModel.cs" />
@@ -230,11 +230,11 @@
230230
<Compile Include="Views\Applications\SubnetCalculatorView.xaml.cs">
231231
<DependentUpon>SubnetCalculatorView.xaml</DependentUpon>
232232
</Compile>
233-
<Compile Include="Views\Applications\WikiOUILookupView.xaml.cs">
234-
<DependentUpon>WikiOUILookupView.xaml</DependentUpon>
233+
<Compile Include="Views\Applications\LookupOUILookupView.xaml.cs">
234+
<DependentUpon>LookupOUILookupView.xaml</DependentUpon>
235235
</Compile>
236-
<Compile Include="Views\Applications\WikiPortLookupView.xaml.cs">
237-
<DependentUpon>WikiPortLookupView.xaml</DependentUpon>
236+
<Compile Include="Views\Applications\LookupPortLookupView.xaml.cs">
237+
<DependentUpon>LookupPortLookupView.xaml</DependentUpon>
238238
</Compile>
239239
<Compile Include="Views\Applications\RemoteDesktopView.xaml.cs">
240240
<DependentUpon>RemoteDesktopView.xaml</DependentUpon>
@@ -277,6 +277,14 @@
277277
<Generator>MSBuild:Compile</Generator>
278278
<SubType>Designer</SubType>
279279
</Page>
280+
<Page Include="Resources\Styles\RadioButtonStyles.xaml">
281+
<Generator>MSBuild:Compile</Generator>
282+
<SubType>Designer</SubType>
283+
</Page>
284+
<Page Include="Resources\Styles\CheckBoxStyles.xaml">
285+
<Generator>MSBuild:Compile</Generator>
286+
<SubType>Designer</SubType>
287+
</Page>
280288
<Page Include="Resources\Styles\ContextMenuStyles.xaml">
281289
<Generator>MSBuild:Compile</Generator>
282290
<SubType>Designer</SubType>
@@ -349,19 +357,19 @@
349357
<Generator>MSBuild:Compile</Generator>
350358
<SubType>Designer</SubType>
351359
</Page>
352-
<Page Include="Views\Applications\WikiOUILookupView.xaml">
360+
<Page Include="Views\Applications\LookupOUILookupView.xaml">
353361
<Generator>MSBuild:Compile</Generator>
354362
<SubType>Designer</SubType>
355363
</Page>
356-
<Page Include="Views\Applications\WikiPortLookupView.xaml">
364+
<Page Include="Views\Applications\LookupPortLookupView.xaml">
357365
<Generator>MSBuild:Compile</Generator>
358366
<SubType>Designer</SubType>
359367
</Page>
360368
<Page Include="Views\Applications\RemoteDesktopView.xaml">
361369
<Generator>MSBuild:Compile</Generator>
362370
<SubType>Designer</SubType>
363371
</Page>
364-
<Page Include="Views\Applications\WikiView.xaml">
372+
<Page Include="Views\Applications\LookupView.xaml">
365373
<Generator>MSBuild:Compile</Generator>
366374
<SubType>Designer</SubType>
367375
</Page>
@@ -539,14 +547,14 @@
539547
<Compile Include="Validators\FileExistsValidator.cs" />
540548
<Compile Include="Validators\PortRangeValidator.cs" />
541549
<Compile Include="ViewModels\Applications\PortScannerViewModel.cs" />
542-
<Compile Include="ViewModels\Applications\WikiPortViewModel.cs" />
550+
<Compile Include="ViewModels\Applications\LookupPortViewModel.cs" />
543551
<Compile Include="ViewModels\Settings\SettingsApplicationPortScannerViewModel.cs" />
544552
<Compile Include="ViewModels\Settings\SettingsApplicationIPScannerViewModel.cs" />
545553
<Compile Include="ViewModels\Settings\SettingsApplicationPingViewModel.cs" />
546554
<Compile Include="ViewModels\Settings\SettingsGeneralGeneralViewModel.cs" />
547555
<Compile Include="ViewModels\Settings\SettingsApplicationTracerouteViewModel.cs" />
548-
<Compile Include="Views\Applications\WikiView.xaml.cs">
549-
<DependentUpon>WikiView.xaml</DependentUpon>
556+
<Compile Include="Views\Applications\LookupView.xaml.cs">
557+
<DependentUpon>LookupView.xaml</DependentUpon>
550558
</Compile>
551559
<Compile Include="Views\ApplicationViewManager.cs" />
552560
<Compile Include="Views\ApplicationViewInfo.cs" />

‎Source/NETworkManager/Resources/Localization/Resources.de-DE.xaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
<system:String x:Key="String_ApplicationName_DNSLookup">DNS Lookup</system:String>
392392
<system:String x:Key="String_ApplicationName_RemoteDesktop">Remote Desktop</system:String>
393393
<system:String x:Key="String_ApplicationName_ARPTable">ARP-Tabelle</system:String>
394-
<system:String x:Key="String_ApplicationName_Wiki">Wiki</system:String>
394+
<system:String x:Key="String_ApplicationName_Lookup">Lookup</system:String>
395395

396396
<!-- SettingsView.Name -->
397397
<system:String x:Key="String_SettingsName_General">Allgemein</system:String>

‎Source/NETworkManager/Resources/Localization/Resources.en-US.xaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
<system:String x:Key="String_ApplicationName_DNSLookup">DNS Lookup</system:String>
392392
<system:String x:Key="String_ApplicationName_RemoteDesktop">Remote Desktop</system:String>
393393
<system:String x:Key="String_ApplicationName_ARPTable">ARP-Table</system:String>
394-
<system:String x:Key="String_ApplicationName_Wiki">Wiki</system:String>
394+
<system:String x:Key="String_ApplicationName_Lookup">Lookup</system:String>
395395

396396
<!-- SettingsView.Name -->
397397
<system:String x:Key="String_SettingsName_General">General</system:String>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3+
<Style x:Key="DefaultCheckBox" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource MetroCheckBox}">
4+
<Setter Property="BorderBrush" Value="{DynamicResource GrayBrush8}" />
5+
</Style>
6+
7+
<Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource DefaultCheckBox}" />
8+
</ResourceDictionary>

‎Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource DefaulScrollViewer}" />
66
</Style.Resources>
77
<Setter Property="FontSize" Value="14" />
8+
<Setter Property="BorderBrush" Value="{DynamicResource GrayBrush8}" />
89
<Setter Property="Validation.ErrorTemplate" Value="{StaticResource DefaultErrorTemplate}" />
910
</Style>
1011

‎Source/NETworkManager/Resources/Styles/NumericUpDownStyles.xaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<Setter Property="Width" Value="150" />
66
<Setter Property="HorizontalAlignment" Value="Left" />
77
<Setter Property="FontSize" Value="14" />
8+
<Setter Property="BorderBrush" Value="{DynamicResource GrayBrush8}" />
89
<Setter Property="Validation.ErrorTemplate" Value="{StaticResource DefaultErrorTemplate}" />
910
</Style>
1011

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3+
<Style x:Key="DefaultRadioButton" TargetType="{x:Type RadioButton}" BasedOn="{StaticResource MetroRadioButton}">
4+
<Setter Property="BorderBrush" Value="{DynamicResource GrayBrush8}" />
5+
</Style>
6+
7+
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource DefaultRadioButton}" />
8+
</ResourceDictionary>

0 commit comments

Comments
 (0)