Exemplo n.º 1
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            foreach (TabPage tab in tabElementProperties.TabPages)
            {
                PropertyTabs.PropertyTabBase tabBase = (PropertyTabs.PropertyTabBase)tab.Tag;

                if (tabBase != null)
                {
                    tabBase.OnClose();
                }
            }
            Close();
        }
Exemplo n.º 2
0
        private void comboBuildEvents_SelectedIndexChanged(object sender, EventArgs e)
        {
            string config = (string)comboConfig.SelectedItem;

            if (string.IsNullOrEmpty(config))
            {
                config = "Default";
            }
            ProjectElement.PerConfigSettings configSetting = Element.Settings[config];

            if (BuildEventDetails != null)
            {
                BuildEventDetails.Close();
                BuildEventDetails = null;
            }

            var buildEvent = ((GR.Generic.Tupel <string, C64Studio.ProjectElement.PerConfigSettings.BuildEvent>)comboBuildEvents.SelectedItem).second;

            switch (buildEvent)
            {
            case ProjectElement.PerConfigSettings.BuildEvent.PRE:
            case ProjectElement.PerConfigSettings.BuildEvent.CUSTOM:
            case ProjectElement.PerConfigSettings.BuildEvent.POST:
                BuildEventDetails = new PropBuildEventScript(Element, Core, configSetting, buildEvent);
                break;

            case ProjectElement.PerConfigSettings.BuildEvent.PRE_BUILD_CHAIN:
                BuildEventDetails = new PropBuildEventBuildChain(Element, Core, configSetting.PreBuildChain, config);
                break;

            case ProjectElement.PerConfigSettings.BuildEvent.POST_BUILD_CHAIN:
                BuildEventDetails = new PropBuildEventBuildChain(Element, Core, configSetting.PostBuildChain, config);
                break;
            }
            BuildEventDetails.Parent   = this;
            BuildEventDetails.Location = new Point(6, 68);
            BuildEventDetails.Visible  = true;

            GR.Image.DPIHandler.ResizeControlsForDPI(BuildEventDetails);
        }