Esempio n. 1
0
        private void btnEditDbBuildConfig_Click(object sender, EventArgs e)
        {
            int index = listDbBuildConfig.SelectedIndex;

            if (index < 0)
            {
                return;
            }

            DlgDbBuildConfig dlg = new DlgDbBuildConfig();
            dlg.InitializeDialog(BranchLocation, listDbBuildConfig.SelectedIndex, _localSettings);

            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            BuildConfiguration dbCfg = new BuildConfiguration(BranchLocation, _localSettings);
            dbCfg.EditConfig(listDbBuildConfig.SelectedIndex, dlg.ExitData);
            _localSettings.DbBuildConfigurations = dbCfg.FavouriteConfigurations;

            SetBranchDependencies();
            listDbBuildConfig.SelectedIndex = index;
        }
Esempio n. 2
0
        private void btnAddDbBuildConfig_Click(object sender, EventArgs e)
        {
            DlgDbBuildConfig dlg = new DlgDbBuildConfig();

            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            BuildConfiguration dbCfg = new BuildConfiguration(BranchLocation, _localSettings);
            dbCfg.AddConfig(dlg.ExitData);
            SetBranchDependencies();
            listDbBuildConfig.SelectedIndex = listDbBuildConfig.Items.Count - 1;
        }