public SettingsWindow(DisplayControl display = null)
        {
            Settings = Settings.Default;
            m_display = display;

            // TODO: USE REFLECTION / MEF TO FIND OUT WHAT IS AVAILABLE
            SupportedCubeSizes = new[]
            {
                new SupportedCubeSize { Name = "Random", CubeSize = null },
                new SupportedCubeSize { Name = "3x3x3", CubeSize = 3 },
                new SupportedCubeSize { Name = "5x5x5", CubeSize = 5 }
            };

            if (m_display != null)
            {
                m_oldSpeed = m_display.Scene.AnimationLength;
            }

            InitializeComponent();
        }
예제 #2
0
 public KeyHandler(Window owner, DisplayControl display)
 {
     m_display = display;
     m_owner = owner;
 }