public FormNewBranch() { InitializeComponent(); ClassWinGeometry.Restore(this); _branches = App.Repos.Current.Branches; }
public FormNewBranch() { InitializeComponent(); ClassWinGeometry.Restore(this); branches = App.Repos.Current.Branches; }
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; } }
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); }
/// <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; }