Ejemplo n.º 1
0
        private void selectMultipleBranchesButton_Click(object sender, EventArgs e)
        {
            FormSelectMultipleBranches formSelectMultipleBranches = new FormSelectMultipleBranches(_branchesToSelect);
            foreach (GitHead branch in GetSelectedBranches())
                formSelectMultipleBranches.SelectBranch(branch.Name);
            formSelectMultipleBranches.ShowDialog(this);
            string branchesText = string.Empty;
            foreach (GitHead branch in formSelectMultipleBranches.GetSelectedBranches())
            {
                if (!string.IsNullOrEmpty(branchesText))
                    branchesText += " ";
                branchesText += branch.Name;
            }

            branches.Text = branchesText;
        }
Ejemplo n.º 2
0
        private void selectMultipleBranchesButton_Click(object sender, EventArgs e)
        {
            using (FormSelectMultipleBranches formSelectMultipleBranches = new FormSelectMultipleBranches(_branchesToSelect))
            {
                foreach (GitRef branch in GetSelectedBranches())
                {
                    formSelectMultipleBranches.SelectBranch(branch.Name);
                }
                formSelectMultipleBranches.ShowDialog(this);
                string branchesText = string.Empty;
                foreach (GitRef branch in formSelectMultipleBranches.GetSelectedBranches())
                {
                    if (!string.IsNullOrEmpty(branchesText))
                    {
                        branchesText += " ";
                    }
                    branchesText += branch.Name;
                }

                branches.Text = branchesText;
            }
        }