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); } } }
public BorderLayoutElementName(String name, BorderLayoutLocations viewLocation) : base(name) { this.viewLocation = viewLocation; }