File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed
Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 11using log4net ;
22using MahApps . Metro . Controls ;
3- using MahApps . Metro . Controls . Dialogs ;
43using MahApps . Metro . SimpleChildWindow ;
54using NETworkManager . Localization . Resources ;
65using NETworkManager . Models . Export ;
@@ -33,10 +32,9 @@ public class ARPTableViewModel : ViewModelBase
3332 /// Initializes a new instance of the <see cref="ARPTableViewModel"/> class.
3433 /// </summary>
3534 /// <param name="instance">The dialog coordinator instance.</param>
36- public ARPTableViewModel ( IDialogCoordinator instance )
35+ public ARPTableViewModel ( )
3736 {
3837 _isLoading = true ;
39- _dialogCoordinator = instance ;
4038
4139 // Result view + search
4240 ResultsView = CollectionViewSource . GetDefaultView ( Results ) ;
@@ -81,11 +79,6 @@ public ARPTableViewModel(IDialogCoordinator instance)
8179
8280 private static readonly ILog Log = LogManager . GetLogger ( typeof ( ARPTableViewModel ) ) ;
8381
84- /// <summary>
85- /// The dialog coordinator instance.
86- /// </summary>
87- private readonly IDialogCoordinator _dialogCoordinator ;
88-
8982 /// <summary>
9083 /// Indicates whether the view model is loading.
9184 /// </summary>
Original file line number Diff line number Diff line change 55 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
66 xmlns : converters =" clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
77 xmlns : iconPacks =" http://metro.mahapps.com/winfx/xaml/iconpacks"
8- xmlns : dialogs =" clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
98 xmlns : viewModels =" clr-namespace:NETworkManager.ViewModels"
109 xmlns : network =" clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models"
1110 xmlns : utilities =" clr-namespace:NETworkManager.Utilities;assembly=NETworkManager.Utilities"
1211 xmlns : networkManager =" clr-namespace:NETworkManager"
1312 xmlns : localization =" clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
1413 xmlns : controls =" clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"
1514 xmlns : wpfHelper =" clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF"
16- x : Class =" NETworkManager.Views.ARPTableView"
17- dialogs:DialogParticipation.Register=" {Binding}"
15+ x : Class =" NETworkManager.Views.ARPTableView"
1816 d : DataContext =" {d:DesignInstance {x:Type viewModels:ARPTableViewModel}}"
1917 mc : Ignorable =" d" >
2018 <UserControl .Resources>
Original file line number Diff line number Diff line change 33using System . Windows ;
44using System . Windows . Controls ;
55using System . Windows . Data ;
6- using MahApps . Metro . Controls . Dialogs ;
76using NETworkManager . Models . Network ;
87using NETworkManager . Utilities ;
98using NETworkManager . ViewModels ;
@@ -12,7 +11,7 @@ namespace NETworkManager.Views;
1211
1312public partial class ARPTableView
1413{
15- private readonly ARPTableViewModel _viewModel = new ( DialogCoordinator . Instance ) ;
14+ private readonly ARPTableViewModel _viewModel = new ( ) ;
1615
1716 public ARPTableView ( )
1817 {
You can’t perform that action at this time.
0 commit comments