//Flag to signal interface switching //private bool switching = false; public FormMain(ScanController scanner) { // This is for testing localization... String culture = String.Empty; //culture = "es-es"; //culture = "zh-TW"; //culture = "ja-JP"; //culture = "de-DE"; //culture = "sv-SE"; //culture = "ru-RU"; if (!string.IsNullOrEmpty(culture)) { CultureInfo ci = new CultureInfo(culture); // set culture for formatting Thread.CurrentThread.CurrentCulture = ci; // set culture for resources Thread.CurrentThread.CurrentUICulture = ci; } InitializeComponent(); var filtersViewController = new FiltersViewController <AccessPoint>(filtersView); _scanner = scanner; _scanner.InitializeCache(filtersViewController); ToolStripManager.Renderer = new GrayToolStripRenderer(); SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged; }
public void InitializeCache(FiltersViewController <AccessPoint> filtersViewController) { filtersViewController.ItsSsidPropertyString = "Ssid"; filtersViewController.ItsVendorPropertyString = "Vendor"; filtersViewController.ItsSecurityPropertyString = "Security"; filtersViewController.ItsChannelPropertyString = "Channel"; filtersViewController.ItsNetworkTypePropertyString = "NetworkType"; Cache = new NetworkDataCacheN { ItsFilterViewController = filtersViewController }; Cache.Initialize(); ItsFiltersViewController = filtersViewController; }
//Flag to signal interface switching //private bool switching = false; public FormMain(ScanController scanner) { // This is for testing localization... String culture = String.Empty; //culture = "es-es"; //culture = "zh-TW"; //culture = "ja-JP"; //culture = "de-DE"; //culture = "sv-SE"; //culture = "ru-RU"; if (!string.IsNullOrEmpty(culture)) { CultureInfo ci = new CultureInfo(culture); // set culture for formatting Thread.CurrentThread.CurrentCulture = ci; // set culture for resources Thread.CurrentThread.CurrentUICulture = ci; } InitializeComponent(); var filtersViewController = new FiltersViewController<AccessPoint>(filtersView); _scanner = scanner; _scanner.InitializeCache(filtersViewController); ToolStripManager.Renderer = new GrayToolStripRenderer(); SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged; }
public void InitializeCache(FiltersViewController<AccessPoint> filtersViewController) { filtersViewController.ItsSsidPropertyString = "Ssid"; filtersViewController.ItsVendorPropertyString = "Vendor"; filtersViewController.ItsSecurityPropertyString = "Security"; filtersViewController.ItsChannelPropertyString = "Channel"; filtersViewController.ItsNetworkTypePropertyString = "NetworkType"; Cache = new NetworkDataCacheN {ItsFilterViewController = filtersViewController}; Cache.Initialize(); ItsFiltersViewController = filtersViewController; }