public void UpdateWindow()
        {
            List <NetworkAdapter> adapters = networkAdapters.GetNetworkAdapters();

            string[] adaptersToDisable = networkAdapters.GetAdapterNamesToDisable();

            NetworkAdaptersEnabled.Clear();
            NetworkAdaptersDisabled.Clear();

            foreach (NetworkAdapter adapter in adapters)
            {
                if (adaptersToDisable.Contains(adapter.Name))
                {
                    NetworkAdaptersDisabled.Add(adapter);
                }
                else
                {
                    NetworkAdaptersEnabled.Add(adapter);
                }
            }
            UpdateAdaptersList();
        }
 public void UpdateNumbers()
 {
     SetAdaptersToDisableValueLabel(networkAdapters.GetAdapterNamesToDisable().Length.ToString());
     SetServicesToDisableValueLabel(windowsServices.GetServiceNamesToDisable().Length.ToString());
     SetPublicAddressValueLabel(EnvHelper.GetPublicAddress());
 }