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