Esempio n. 1
0
        public DppViewModel()
        {
            cache = new DppCache();
            cache.PropertyChanged += OnCacheStatusChanged;
            CompositeDisposable.Add(cache);

            parameterSet = new ParameterSet();
            parameterSet.ForEach(p => cache.Parameters.Add(p));
        }
 // Performs an action on each map which describes a grid ("Name", "LoginURL", ...)
 public void ForEach(Action <OMVSD.OSDMap> act)
 {
     CheckInit();
     try {
         m_gridInfo.ForEach(delegate(string k, OMVSD.OSD v) {
             act((OMVSD.OSDMap)v);
         });
     }
     catch (Exception e) {
         LogManager.Log.Log(LogLevel.DBADERROR, "GridList.ForEach: Exception: {0}", e.ToString());
     }
 }
Esempio n. 3
0
 private static IEnumerable<Parameter> GetParameterSet()
 {
     var parameterSet = new ParameterSet();
     parameterSet.Rois.ForEach(r => r.Roi.IsBackground0Enabled = true);
     parameterSet.Rois.ForEach(r => r.Roi.IsBackground1Enabled = true);
     parameterSet.ForEach(p => p.Initialize());
     parameterSet.ForEach(p => p.Initialize());
     return parameterSet;
 }