public Graphics()
        {
            this.graphics = new GraphicsDeviceManager(this);
            this.graphics.PreferredBackBufferWidth = Convert.ToInt32(ProgramSettings.ResolutionWidth);
            this.graphics.PreferredBackBufferHeight = Convert.ToInt32(ProgramSettings.ResolutionHeight);
            this.graphics.IsFullScreen = ProgramSettings.FullscreenMode;
            Content.RootDirectory = "Content";

            // Create the screen factory and add it to the Services
            screenFactory = new ScreenFactory();
            Services.AddService(typeof(IScreenFactory), screenFactory);

            // Create the screen manager component.
            screenManager = new ScreenManager(this);
            screenManager.GraphicsDeviceManager = this.graphics;

            MultiInputManager manager = new MultiInputManager();
            if (ProgramSettings.KinectEnabled && KinectHelper.Instance().isRunning())
                manager.AddInputDevice(new GestureEventManager());

            screenManager.OtherInput = manager;
            Components.Add(screenManager);

            // Create the first screen
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);
        }
        public PinEditor()
        {
            ProgramSettings.Load();

            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            screenManager = new ScreenManager(this);
            screenManager.GraphicsDeviceManager = this.graphics;

            MultiInputManager manager = new MultiInputManager();

            if (KinectHelper.Instance().isRunning())
                manager.AddInputDevice(new GestureEventManager());

            screenManager.OtherInput = manager;
            Components.Add(screenManager);

            screenManager.AddScreen(new PhotoSetMenuScreen(), null);
        }