public void AddFirst() { SelectCoreActionView.Show((type) => { var newActionHolder = new ActionHolder() { Action = _manager.CreateInstance(type, AlgorithmContext) }; _action.ActionHolders.Insert(0, newActionHolder); Insert(newActionHolder, 0); Modified?.Invoke(this); }); }
public void TestExtModulesAcrossSerializing_part1() { var savior = new FileSavior(); Singleton.Add(savior); var manager = new PluginsManager(); IAction testAction = manager.CreateInstance(manager.GetModules().First(), null); testAction.SetValue(null, DateTime.Now.ToString()); savior.Set("testAction", testAction); }