Glide

What is the current Glide Version Number?
Also I have an error: ‘GHI.Glide.Resources’ is inaccessible due to its protection level
on line: window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window));
Any comments please.

@ KG1 - The current Glide version is 4.3.0.0 in the 2014 R5 SDK. The error you are having is likely because you have some namepsaces mixed up. The resources you are trying to use is the internal resources class for Glide that is not publically accessible. I would check to make sure your default namespace for your project is set correctly.

@ John. Thank you John for your reply. I am bringing an old project into the current IDE.
At first I was concerned about the first line in the windows.txt file: but I now note that the Glide Designer still has this as the first line. The namespaces where:
using GHI.Glide;
using GHI.Glide.Display;
using GHI.Glide.UI;
using GHI.Pins;
which I left as is. The code at the beginning is:


            Debug.Print("Program Started");
            //            FEZCobraIIEco cobra = new FEZCobraIIEco();
            joystick = new JoystickClass();
            //            joystick.Calibrate();
            //            joystick.JoystickPressed += joystick_JoystickPressed;
            //            joystick.JoystickReleased += joystick_JoystickReleased;
            SDlogger.InitialiseLog();
            string dateNow = DateTime.Now.ToString("ddMMyyyy");
            //            button.ButtonPressed += button_ButtonPressed;
            // Load the window
            window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window));
            // Activate touch
            GlideTouch.Initialize();
            // Initialize the window.
            InitWin();
            // Resize any loaded Window to the LCD's size.
            //            Glide.FitToScreen = true;

            // Assign the Window to MainWindow; rendering it to the LCD.
            Glide.MainWindow = window;


I am currently with the error message:
‘GHI.Glide.Resources’ is inaccessible due to its protection level
Regards,
Kevin

@ John. The “Resources” should be the windows.txt file.


namespace ControllerGuide3
{
    
    internal partial class Resources
    {
        private static System.Resources.ResourceManager manager;
        internal static System.Resources.ResourceManager ResourceManager
        {
            get
            {
                if ((Resources.manager == null))
                {
                    Resources.manager = new System.Resources.ResourceManager("ControllerGuide3.Resources", typeof(Resources).Assembly);
                }
                return Resources.manager;
            }
        }
        internal static Microsoft.SPOT.Font GetFont(Resources.FontResources id)
        {
            return ((Microsoft.SPOT.Font)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id)));
        }
        internal static string GetString(Resources.StringResources id)
        {
            return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id)));
        }
        [System.SerializableAttribute()]
        internal enum StringResources : short
        {
            String1 = 1228,
            window = 27311,
        }
        [System.SerializableAttribute()]
        internal enum FontResources : short
        {
            small = 13070,
            NinaB = 18060,
        }
    }
}

Should the name in the windows.txt file be “windows” not :

Regards,
Kevin

@ John I fixed it!
window = GlideLoader.LoadWindow(ControllerGuide3.Resources.GetString(ControllerGuide3.Resources.StringResources.window));
Cheers

How do i access the glide class? I am using the latest NETMF and Gadgeteer Package 2014 R5 SDK with VIsual Studio 2012. I would also like like to set a startup logo. Any help will be appreciated