private void GetPros() { _products.Clear(); MonitoringThemeFactory.MergerTheme(AppDomain.CurrentDomain.BaseDirectory + "\\Themes\\CMAThemes.xml"); _curTheme = MonitoringThemeFactory.GetThemeDefByIdentify("CMA"); if (_curTheme == null) { return; } ProductDef[] pros = _curTheme.Products; if (pros == null || pros.Length == 0) { return; } foreach (ProductDef pro in pros) { _products.Add(pro.Name, pro.Identify); } }
public static void Register(string fname) { MonitoringThemeFactory.MergerTheme(fname); }