Exemplo n.º 1
0
        public TabMission(FrmMission parent)
        {
            InitializeComponent();
            m_parent = parent;
            m_mission = null;
            m_dlgConditions = new DlgConditions();
            m_dlgStages = new DlgStages();
            CommonTools.Enumeration.AddSortedByName<CommonTools.MissionType>(guiTypeCbo);

            new CommonTools.Gui.TableButtonHandler(guiConditionsTbl, guiConditionsAddBtn, guiConditionsRemoveBtn, guiConditionsEditBtn, guiConditionUpBtn, guiConditionDownBtn);
            guiConditionUpBtn.Click += new EventHandler(onConditionReordered);
            guiConditionDownBtn.Click += new EventHandler(onConditionReordered);

            new CommonTools.Gui.TableButtonHandler(guiStagesTbl, guiStagesAddBtn, guiStagesRemoveBtn, null, guiStageUpBtn, guiStageDownBtn);
            guiStageUpBtn.Click += new EventHandler(onStageReordered);
            guiStageDownBtn.Click += new EventHandler(onStageReordered);
        }
        public TabMission(FrmMission parent)
        {
            InitializeComponent();
            m_parent        = parent;
            m_mission       = null;
            m_dlgConditions = new DlgConditions();
            m_dlgStages     = new DlgStages();
            CommonTools.Enumeration.AddSortedByName <CommonTools.MissionType>(guiTypeCbo);

            new CommonTools.Gui.TableButtonHandler(guiConditionsTbl, guiConditionsAddBtn, guiConditionsRemoveBtn, guiConditionsEditBtn, guiConditionUpBtn, guiConditionDownBtn);
            guiConditionUpBtn.Click   += new EventHandler(onConditionReordered);
            guiConditionDownBtn.Click += new EventHandler(onConditionReordered);

            new CommonTools.Gui.TableButtonHandler(guiStagesTbl, guiStagesAddBtn, guiStagesRemoveBtn, null, guiStageUpBtn, guiStageDownBtn);
            guiStageUpBtn.Click   += new EventHandler(onStageReordered);
            guiStageDownBtn.Click += new EventHandler(onStageReordered);
        }