public void Refresh()
 {
     _localeInfos.Clear();
     _localeInfos.Add(
         new LocaleInfo()
     {
         Title       = _resourceStringManager.GetString("English"),
         CultureName = "en-US"
     });
     _localeInfos.Add(
         new LocaleInfo()
     {
         Title       = _resourceStringManager.GetString("French"),
         CultureName = "fr-FR"
     });
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of Extension.
        /// </summary>
        public Extension()
            : base()
        {
            Title     = _title;
            IconKey   = _iconKey;
            SortOrder = 90;

            ResourceAssembly.Register();
            ResourceStringManager resourceStringManager = new ResourceStringManager(
                AssemblyNameConst,
                "Strings.Extension");

            _pageInfos = new List <PageInfo>
            {
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("About"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/About.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Skin",
                    IconKey          = _iconKey,
                    PartialClassName = "View/SkinConfig.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Localization"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/LocalizationConfig.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "DPI",
                    IconKey          = _iconKey,
                    PartialClassName = "View/DpiScaling.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Rendering"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/RenderingConfig.xaml"
                },
            };
            SkinManager.Current.LoadCurrentSkin();
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of Extension.
        /// </summary>
        public Extension()
            : base()
        {
            Title     = _title;
            IconKey   = _iconKey;
            SortOrder = 100;
            ResourceAssembly.Register();
            ResourceStringManager resourceStringManager = new ResourceStringManager(
                AssemblyNameConst,
                "Strings.Extension");

            _pageInfos = new List <PageInfo>
            {
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Shapes"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/ShapeDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Matrix"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/MatrixDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("RangeControls"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/RangeControlDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "BeePanel / BeeGrid",
                    IconKey          = _iconKey,
                    PartialClassName = "View/BeePanelDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("MayaEase"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/MayaEaseDemo.xaml"
                }
            };
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of MainModel.
        /// </summary>
        public ExtensionModel()
        {
            Compose();

            Extensions = new List <Extension>();
            foreach (var extension in _mefExtensions)
            {
                Extensions.Add(extension);
            }
            if (Extensions.Count == 0)
            {
                ResourceStringManager resourceStringManager = new ResourceStringManager(
                    ResourceAssembly.AssemblyNameConst,
                    "Model.Strings.ExtensionModel");
                MessageBox.Show(resourceStringManager.GetString("NoMefModuleWarning"));
            }
            else
            {
                Extensions.Sort(CompareExtensions);
            }
        }
Esempio n. 5
0
        /// <summary>
        /// Initializes a new instance of Extension.
        /// </summary>
        public Extension()
            : base()
        {
            Title     = _title;
            IconKey   = _iconKey;
            SortOrder = 110;
            ResourceAssembly.Register();
            ResourceStringManager resourceStringManager = new ResourceStringManager(
                AssemblyNameConst,
                "Strings.Extension");

            _pageInfos = new List <PageInfo>
            {
                new PageInfo(this)
                {
                    Title            = "XyzAxis3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/XyzAxis3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Box3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Box3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Box3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Box3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("OpenBox3D"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/Box3DOpenDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Box3D + Transform3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Box3DTransformDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Interactivity"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/InteractivityDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Square3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Square3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Square3D + animation",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Square3DAnimationDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Square3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Square3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Polygon3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Polygon3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Polygon3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Polygon3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Bar3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Bar3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Cylinder"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/CylinderDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Bar3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Bar3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Conical3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Conical3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Conical3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Conical3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Ring3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Ring3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Spherical3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Spherical3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Spherical3D + image",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Spherical3DImageDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Spherical3D + Transform3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Spherical3DTransformDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("BubbleChart"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/BubbleChartDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Isocahedron3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Isocahedron3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "TruncatedIsocahedron3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/TruncatedIsocahedron3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Football3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Football3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("PieSlice"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/PieSliceDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Gyroscope3D.xaml",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Gyroscope3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Arrow3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Arrow3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Range3D"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/ButtonFaderKnob3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("Mixer"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/MixerDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = resourceStringManager.GetString("CustomKnob3D"),
                    IconKey          = _iconKey,
                    PartialClassName = "View/CustomKnob3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "Matrix3D",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Matrix3DDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "House3D + Export",
                    IconKey          = _iconKey,
                    PartialClassName = "View/HouseDemo.xaml"
                },
                new PageInfo(this)
                {
                    Title            = "3D spaces",
                    IconKey          = _iconKey,
                    PartialClassName = "View/Space3DDemo.xaml"
                }
            };
        }