Esempio n. 1
0
        protected View(LoadInfo info)
            : base(info)
        {
            if (info.Version < CurrentVersion)
            {
                if (info.Version < 1)
                {
                    if (info.hasValue("<ViewLocation>k__BackingField"))
                    {
                        switch (info.GetValue <ViewLocations>("<ViewLocation>k__BackingField", ViewLocations.Left))
                        {
                        case ViewLocations.Left:
                            ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Left);
                            break;

                        case ViewLocations.Right:
                            ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Right);
                            break;

                        case ViewLocations.Top:
                            ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Top);
                            break;

                        case ViewLocations.Bottom:
                            ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Bottom);
                            break;

                        case ViewLocations.Floating:
                            ElementName = new LayoutElementName(GUILocationNames.FullscreenPopup);
                            break;
                        }
                    }
                }
            }
        }
Esempio n. 2
0
 public View(String name)
     : base(name)
 {
     ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Left);
     Transparent = false;
 }