public MainWindow( IRegistryService registryService, IWifiDeviceService wifiDeviceService, ICapturePackets capturePackets, IArpSpoof arpSpoof) { InitializeComponent(); _registryService = registryService; _wifiDeviceService = wifiDeviceService; _wndArpSpoof = arpSpoof; _wndCapturePackets = capturePackets; _wndArpSpoof.Closing += wnd_Closing; _wndCapturePackets.Closing += wnd_Closing; tbDriver.Text = _wifiDeviceService.DeviceWithDescription.DriverName; tbName.Text = _wifiDeviceService.DeviceWithDescription.Name; tbIp.Text = _wifiDeviceService.DeviceWithDescription.IpV4; tbGuid.Text = _wifiDeviceService.DeviceWithDescription.Guid; tbMac.Text = _wifiDeviceService.DeviceWithDescription.DeviceMacString; tbGateway.Text = _wifiDeviceService.DeviceWithDescription.GatewayIpString; lblWinRouting.Content = _registryService.GetWinRoutingStatus(); }
public ConnectionsController(ConnectionsViewModel viewModel, IMapper mapper, IMessenger messenger, IConnectionsService connectionService, ICapturePackets capturePackets) { this.viewModel = viewModel; this.viewModel.Connections = new ObservableCollection <ConnectionViewEntity>(); this.mapper = mapper; this.messenger = messenger; this.connectionService = connectionService; this.capturePackets = capturePackets; connections = new List <DomainConnection>(); packets = new List <DomainConnection>(); connectionsTimer = new DispatcherTimer(); displayTimer = new DispatcherTimer(); memoryTimer = new DispatcherTimer(); comparer = new ConnectionViewEntityComparer(); }