Пример #1
0
 public ResizeControlState(Controls controls, StateManager stateManager, CommandManager commandManager, FlagPosition flagPosition)
 {
     m_flagPosition = flagPosition;
     m_controls = controls;
     m_stateManager = stateManager;
     m_commandManager = commandManager;
 }
Пример #2
0
        public StageForm()
        {
            InitializeComponent();

            m_resNames.Add("SVGA");         m_resolutions.Add(new TPoint(800, 600));
            m_resNames.Add("WVGA800");      m_resolutions.Add(new TPoint(800, 480));
            m_resNames.Add("WVGA854");      m_resolutions.Add(new TPoint(854, 480));
            m_resNames.Add("WXGA800");      m_resolutions.Add(new TPoint(1280, 800));
            m_resNames.Add("GalIII(?)");    m_resolutions.Add(new TPoint(1200, 720));
            m_resNames.Add("qHD");          m_resolutions.Add(new TPoint(960, 540));

            foreach( string res in m_resNames )
            {
                cmbResolution.Items.Add(res);
            }

            stagePanel.GuidTabSize = 50;

            stagePanel.SelectControlEventHandler += OnSelectControl;
            m_stateManager = new StateManager(m_commandManager, stagePanel);
        }
Пример #3
0
 public MoveState( Controls controls, StateManager stateManager, CommandManager commandManager )
 {
     m_controls = controls;
     m_stateManager = stateManager;
     m_commandManager = commandManager;
 }
Пример #4
0
 public CreateControlState( BaseCreateControl createControlCommand, StateManager stateManager, CommandManager commandManager)
 {
     m_createCommand = createControlCommand;
     m_stateManager = stateManager;
     m_commandManager = commandManager;
 }
Пример #5
0
 public IdleState(StageBox editor, StateManager stateManager, CommandManager commandManager)
 {
     m_editPanel = editor;
     m_stateManager = stateManager;
     m_commandManager = commandManager;
 }