public static void Collect() { if (Collector == null) { return; } var windows = Collector(); if (windows.Any()) { AllWindows.Clear(); AllWindows.AddRange(windows); } }
public static void Init() { if (Initialized) { return; } AllWindows.Clear(); AllWindows.Add(new WindowsConfig("HallPalier_F1")); AllWindows.Add(new WindowsConfig("HallPalier_F2")); AllWindows.Add(new WindowsConfig("HallPalier_F3")); AllWindows.Add(new WindowsConfig("HallRdc_F1")); AllWindows.Add(new WindowsConfig("HallRdc_F2")); AllWindows.Add(new WindowsConfig("Tesla_F1")); AllWindows.Add(new WindowsConfig("Tesla_F2")); AllWindows.Add(new WindowsConfig("Tesla_F3")); AllWindows.Add(new WindowsConfig("Tesla_F4")); AllWindows.Add(new WindowsConfig("Turing_F1")); AllWindows.Add(new WindowsConfig("Turing_F2")); AllWindows.Add(new WindowsConfig("Turing_F3")); AllWindows.Add(new WindowsConfig("Lumiere_F1")); AllWindows.Add(new WindowsConfig("Lumiere_F2")); AllWindows.Add(new WindowsConfig("Lumiere_F3")); AllWindows.Add(new WindowsConfig("Nobel_F1")); AllWindows.Add(new WindowsConfig("Nobel_F2")); AllWindows.Add(new WindowsConfig("Nobel_F3")); Load(); _WindowsWatcherThread = new Thread(new ThreadStart(ThrRefresh)); _WindowsWatcherThread.Start(); Initialized = true; }