コード例 #1
0
ファイル: FormNewBranch.cs プロジェクト: splintor/GitForce
        public FormNewBranch()
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            _branches = App.Repos.Current.Branches;
        }
コード例 #2
0
        public FormNewBranch()
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            branches = App.Repos.Current.Branches;
        }
コード例 #3
0
ファイル: FormMergeBranch.cs プロジェクト: pokam-dev/GitForce
        public FormMergeBranch()
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            ClassBranches branches = App.Repos.Current.Branches;

            labelCurrentBranchName.Text = "Current branch is \"" + branches.Current + "\"";

            // Add all available branches to the list of branches to merge
            foreach (var branch in branches.Local)
            {
                listBranches.Items.Add(branch);
            }

            foreach (var branch in branches.Remote)
            {
                listBranches.Items.Add(branch);
            }

            listBranches.Items.RemoveAt(listBranches.Items.IndexOf(branches.Current));

            if (listBranches.Items.Count > 0)
            {
                listBranches.SelectedIndex = 0;
                btMerge.Enabled            = true;
            }
        }
コード例 #4
0
ファイル: FormDeleteBranch.cs プロジェクト: splintor/GitForce
        public FormDeleteBranch()
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            _branches = App.Repos.Current.Branches;

            // Initialize local branches as the default selection
            foreach (var branch in _branches.Local)
                listBranches.Items.Add(branch);
        }
コード例 #5
0
ファイル: FormDeleteBranch.cs プロジェクト: kjanakir/GitForce
        /// <summary>
        /// Constructor for the Delete Branch operation.
        /// It is given a name of the branch to select by default.
        /// </summary>
        public FormDeleteBranch(string defaultBranch)
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            branches = App.Repos.Current.Branches;
            this.defaultBranch = defaultBranch;

            // Initialize local branches as the default view.
            // This assignment will call "RadioButton1CheckedChanged" since
            // we initialized this radio button to not-checked in the designer.
            radioLocalBranch.Checked = true;

            // Restore the state of the Force delete option
            checkForce.Checked = Properties.Settings.Default.ForceDeleteBranch;
        }
コード例 #6
0
        /// <summary>
        /// Constructor for the Delete Branch operation.
        /// It is given a name of the branch to select by default.
        /// </summary>
        public FormDeleteBranch(string defaultBranch)
        {
            InitializeComponent();
            ClassWinGeometry.Restore(this);

            branches           = App.Repos.Current.Branches;
            this.defaultBranch = defaultBranch;

            // Initialize local branches as the default view.
            // This assignment will call "RadioButton1CheckedChanged" since
            // we initialized this radio button to not-checked in the designer.
            radioLocalBranch.Checked = true;

            // Restore the state of the Force delete option
            checkForce.Checked = Properties.Settings.Default.ForceDeleteBranch;
        }