Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public static void Register(string fname)
 {
     MonitoringThemeFactory.MergerTheme(fname);
 }