public FormCommit() { _syncContext = SynchronizationContext.Current; InitializeComponent(); splitRight.Panel2MinSize = 130; Translate(); SolveMergeconflicts.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Bold); SelectedDiff.ExtraDiffArgumentsChanged += SelectedDiffExtraDiffArgumentsChanged; closeDialogAfterEachCommitToolStripMenuItem.Checked = Settings.CloseCommitDialogAfterCommit; closeDialogAfterAllFilesCommittedToolStripMenuItem.Checked = Settings.CloseCommitDialogAfterLastCommit; Unstaged.SetNoFilesText(_noUnstagedChanges.Text); Staged.SetNoFilesText(_noStagedChanges.Text); Message.SetEmptyMessage(_enterCommitMessageHint.Text); Unstaged.SelectedIndexChanged += UntrackedSelectionChanged; Staged.SelectedIndexChanged += TrackedSelectionChanged; Unstaged.DoubleClick += Unstaged_DoubleClick; Staged.DoubleClick += Staged_DoubleClick; _gitGetUnstagedCommand = new GitCommandsInstance(); _gitGetUnstagedCommand.Exited += GitCommandsExited; Unstaged.Focus(); SelectedDiff.AddContextMenuEntry(null, null); _StageSelectedLinesToolStripMenuItem = SelectedDiff.AddContextMenuEntry(_stageSelectedLines.Text, StageSelectedLinesToolStripMenuItemClick); SelectedDiff.AddContextMenuEntry(_resetSelectedLines.Text, ResetSelectedLinesToolStripMenuItemClick); splitMain.SplitterDistance = Settings.CommitDialogSplitter; this.HotkeysEnabled = true; this.Hotkeys = HotkeySettingsManager.LoadHotkeys(HotkeySettingsName); Commit.Focus(); }