public DesignTimeData()
        {
            IoC.Setup();
            SettingsUserControlViewModel = new SettingsUserControlViewModel();

            NetworkRange = new NetworkRangeModel()
            {
                ListOfActiveNetworkIpAddresses = new System.Collections.ObjectModel.ObservableCollection <ScanResponse>()
                {
                    new ScanResponse()
                    {
                        IpAddress       = "192.168.1.10",
                        AverageResponse = "10",
                        MaxResponse     = "20",
                        Status          = ScanResponseStatus.ok
                    },
                    new ScanResponse()
                    {
                        IpAddress       = "192.168.1.20",
                        AverageResponse = "10",
                        MaxResponse     = "20",
                        Status          = ScanResponseStatus.ok
                    },
                }
            };
        }
Example #2
0
 public FormPageViewModel()
 {
     NetworkRange     = new NetworkRangeModel();
     scanner          = new NetworkPing();
     _settingsService = IoC.Get <ISettingsService>();
     AppSetings       = _settingsService.GetSettings();
     _settingsService.SettingsUpdated += SettingsUpdatedEvent;
     SetIpRangeBasedOnActiveInterfaceAdapter();
     ClearListOfActiveNetworkIpAddresses();
     scanner.ScanNetworkFoundDelegateAsync       += ScanIpAddressAsync;
     scanner.ScanNetworkCurrentIpAddressDelegate += UpdateInformationWithCurrentIpAddress;
     Title = "Form";
     SetCommands();
 }