internal FormCheckoutBranch(GitUICommands aCommands) : base(aCommands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); Translate(); _rbResetBranchDefaultText = rbResetBranch.Text; }
public FormRenameBranch(GitUICommands aCommands, string defaultBranch) : base(aCommands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); Translate(); BranchNameTextBox.Text = defaultBranch; _oldName = defaultBranch; }
public FormRenameBranch(GitUICommands commands, string defaultBranch) : base(commands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); Translate(); BranchNameTextBox.Text = defaultBranch; _oldName = defaultBranch; }
internal FormCheckoutBranch(GitUICommands commands) : base(commands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); Translate(); _rbResetBranchDefaultText = rbResetBranch.Text; ApplyLayout(); Shown += FormCheckoutBranch_Shown; }
public FormCreateBranch(GitUICommands aCommands, GitRevision revision, IGitBranchNameNormaliser branchNameNormaliser = null) : base(aCommands) { _branchNameNormaliser = branchNameNormaliser ?? new GitBranchNameNormaliser(); InitializeComponent(); Translate(); commitPickerSmallControl1.UICommandsSource = this; if (IsUICommandsInitialized) { commitPickerSmallControl1.SetSelectedCommitHash(revision == null ? Module.GetCurrentCheckout() : revision.Guid); } }
public FormCreateBranch(GitUICommands aCommands, GitRevision revision) : base(aCommands) { _branchNameNormaliser = new GitBranchNameNormaliser(); CheckoutAfterCreation = true; UserAbleToChangeRevision = true; CouldBeOrphan = true; InitializeComponent(); Translate(); commitPickerSmallControl1.UICommandsSource = this; if (IsUICommandsInitialized) { commitPickerSmallControl1.SetSelectedCommitHash(revision == null ? Module.GetCurrentCheckout() : revision.Guid); } }
internal FormCheckoutBranch(GitUICommands commands) : base(commands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); InitializeComplete(); _rbResetBranchDefaultText = rbResetBranch.Text; ApplyLayout(); Shown += FormCheckoutBranch_Shown; return; void FormCheckoutBranch_Shown(object sender, EventArgs e) { Shown -= FormCheckoutBranch_Shown; RecalculateSizeConstraints(); } }
public FormCreateBranch(GitUICommands aCommands, GitRevision revision) : base(aCommands) { _branchNameNormaliser = new GitBranchNameNormaliser(); CheckoutAfterCreation = true; UserAbleToChangeRevision = true; CouldBeOrphan = true; InitializeComponent(); Translate(); // Mono is having troubles dynamically sizing the groupbox groupBox1.AutoSize = !EnvUtils.IsMonoRuntime(); commitPickerSmallControl1.UICommandsSource = this; if (IsUICommandsInitialized) { commitPickerSmallControl1.SetSelectedCommitHash(revision == null ? Module.GetCurrentCheckout() : revision.Guid); } }
public FormCreateBranch(GitUICommands commands, ObjectId objectId) : base(commands) { _branchNameNormaliser = new GitBranchNameNormaliser(); CheckoutAfterCreation = true; UserAbleToChangeRevision = true; CouldBeOrphan = true; InitializeComponent(); InitializeComplete(); groupBox1.AutoSize = true; commitPickerSmallControl1.UICommandsSource = this; if (IsUICommandsInitialized) { objectId = objectId ?? Module.GetCurrentCheckout(); if (objectId != null) { commitPickerSmallControl1.SetSelectedCommitHash(objectId.ToString()); } } }
internal FormCheckoutBranch(GitUICommands aCommands) : base(aCommands) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); Translate(); _rbResetBranchDefaultText = rbResetBranch.Text; }
public FormCheckoutBranch(GitUICommands commands, string branch, bool remote, IReadOnlyList <ObjectId> containRevisions = null) : base(commands, true) { _branchNameNormaliser = new GitBranchNameNormaliser(); InitializeComponent(); InitializeComplete(); _rbResetBranchDefaultText = rbResetBranch.Text; // work-around the designer bug that can't add controls to FlowLayoutPanel ControlsPanel.Controls.Add(Ok); ApplyLayout(); Shown += FormCheckoutBranch_Shown; _isLoading = true; try { _containRevisions = containRevisions; LocalBranch.Checked = !remote; Remotebranch.Checked = remote; PopulateBranches(); // Set current branch after initialize, because initialize will reset it if (!string.IsNullOrEmpty(branch)) { Branches.Items.Add(branch); Branches.SelectedItem = branch; } if (containRevisions != null) { if (Branches.Items.Count == 0) { LocalBranch.Checked = remote; Remotebranch.Checked = !remote; PopulateBranches(); } } // The dirty check is very expensive on large repositories. Without this setting // the checkout branch dialog is too slow. if (AppSettings.CheckForUncommittedChangesInCheckoutBranch) { _isDirtyDir = Module.IsDirtyDir(); } else { _isDirtyDir = null; } localChangesGB.Visible = HasUncommittedChanges; ChangesMode = AppSettings.CheckoutBranchAction; rbCreateBranchWithCustomName.Checked = AppSettings.CreateLocalBranchForRemote; } finally { _isLoading = false; } return; void FormCheckoutBranch_Shown(object sender, EventArgs e) { Shown -= FormCheckoutBranch_Shown; RecalculateSizeConstraints(); } }