Exemplo n.º 1
0
        protected SlidePanel(LoadInfo info)
        {
            ReflectedSaver.RestoreObject(this, info);
            if (info.Version < CurrentVersion)
            {
                if (info.Version < 1)
                {
                    BorderLayoutLocations location = BorderLayoutLocations.Left;
                    switch (info.GetValue("viewLocation", ViewLocations.Left))
                    {
                    case ViewLocations.Left:
                        location = BorderLayoutLocations.Left;
                        break;

                    case ViewLocations.Right:
                        location = BorderLayoutLocations.Right;
                        break;

                    case ViewLocations.Top:
                        location = BorderLayoutLocations.Top;
                        break;

                    case ViewLocations.Bottom:
                        location = BorderLayoutLocations.Bottom;
                        break;
                    }
                    ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, location);
                }
            }
        }
Exemplo n.º 2
0
 public override void getInfo(SaveInfo info)
 {
     base.getInfo(info);
     info.AddValue("BehaviorDataType", DefaultTypeFinder.CreateShortTypeString(behaviorTemplate.GetType()));
     info.AddValue("UpdatePhase", behaviorTemplate.UpdatePhase);
     ReflectedSaver.SaveObject(behaviorTemplate, info, BehaviorSaveMemberScanner.Scanner);
     behaviorTemplate.callCustomSave(info);
 }
Exemplo n.º 3
0
 protected Slide(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, ReflectedSaver.DefaultScanner);
     id = info.GetValueCb("Id", () =>
     {
         return(Guid.NewGuid().ToString("D"));
     });
     info.RebuildDictionary("TriggerAction", triggerActions);
     if (layoutStrategy == null)
     {
         layoutStrategy = new BorderSlideLayoutStrategy();
     }
 }
Exemplo n.º 4
0
        private BehaviorDefinition(LoadInfo info)
            : base(info)
        {
            String behaviorType = info.GetString("BehaviorDataType");
            Type   type         = info.TypeFinder.findType(behaviorType);

            if (type != null)
            {
                behaviorTemplate             = (Behavior)Activator.CreateInstance(type);
                behaviorTemplate.UpdatePhase = info.GetString("UpdatePhase", "Default");
                ReflectedSaver.RestoreObject(behaviorTemplate, info, BehaviorSaveMemberScanner.Scanner);
                behaviorTemplate.callCustomLoad(info);
            }
            else
            {
                throw new BehaviorException(String.Format("Could not load behavior of type {0}. The type could not be found.", behaviorType));
            }
        }
 protected BorderSlideLayoutStrategy(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
     if (info.Version < CurrentVersion)
     {
         if (info.Version < 1)
         {
             Dictionary <ViewLocations, SlidePanel> legacyPanels = new Dictionary <ViewLocations, SlidePanel>();
             info.RebuildDictionary("Panel", legacyPanels);
             foreach (var panel in legacyPanels.Values)
             {
                 addPanel(panel);
             }
         }
     }
     else
     {
         info.RebuildDictionary("Panel", panels);
     }
 }
Exemplo n.º 6
0
 protected SlideAction(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
 }
Exemplo n.º 7
0
 public virtual void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, ReflectedSaver.DefaultScanner);
     info.ExtractList("Slides", slides);
 }
Exemplo n.º 8
0
 protected Slideshow(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, ReflectedSaver.DefaultScanner);
     info.RebuildList("Slides", slides);
 }
Exemplo n.º 9
0
 public virtual void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, ReflectedSaver.DefaultScanner);
     info.AddValue("Id", id.ToString());
     info.ExtractDictionary("TriggerAction", triggerActions);
 }
 public SaveableClipboardContainer(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, scanner);
 }
 protected SaveableEditableItem(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, BehaviorSaveMemberScanner.Scanner);
 }
Exemplo n.º 12
0
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info);
     info.Version = CurrentVersion;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Get the info to save for the implementing class.
 /// </summary>
 /// <param name="info">The SaveInfo class to save into.</param>
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, BehaviorSaveMemberScanner.Scanner);
     customizeSave(info);
 }
 protected SceneViewWindowPreset(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
 }
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info);
     info.ExtractDictionary("Panel", panels);
     info.Version = CurrentVersion;
 }
Exemplo n.º 16
0
 protected SceneThumbInfo(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
 }
Exemplo n.º 17
0
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info);
 }
 protected SceneViewWindowPresetSet(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
     info.RebuildLinkedList <SceneViewWindowPreset>("Preset", presets);
 }
Exemplo n.º 19
0
 protected LayoutElementName(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
 }
Exemplo n.º 20
0
 protected ActionCommand(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, BehaviorSaveMemberScanner.Scanner);
 }
 protected BEPUikSolverDefinition(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
     info.RebuildList("ChildSolver", childSolvers);
 }
Exemplo n.º 22
0
 protected SaveTest(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info);
 }
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info);
     info.ExtractLinkedList <SceneViewWindowPreset>("Preset", presets);
 }
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info);
     info.ExtractList("ChildSolver", childSolvers);
 }
Exemplo n.º 25
0
 public virtual void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, BehaviorSaveMemberScanner.Scanner);
 }
Exemplo n.º 26
0
 protected DataModelItem(LoadInfo info)
 {
     ReflectedSaver.RestoreObject(this, info, ReflectedSaver.DefaultScanner);
 }
 public virtual void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, scanner);
 }
Exemplo n.º 28
0
 public void getInfo(SaveInfo info)
 {
     ReflectedSaver.SaveObject(this, info, ReflectedSaver.DefaultScanner);
 }