本文整理汇总了C#中GitUICommands类的典型用法代码示例。如果您正苦于以下问题:C# GitUICommands类的具体用法?C# GitUICommands怎么用?C# GitUICommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GitUICommands类属于命名空间,在下文中一共展示了GitUICommands类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FormAddFiles
public FormAddFiles(GitUICommands aCommands, string addFile)
: base(aCommands)
{
InitializeComponent();
Translate();
Filter.Text = addFile ?? ".";
}
示例2: FormDeleteBranch
public FormDeleteBranch(GitUICommands aCommands, IEnumerable<string> defaultBranches)
: base(aCommands)
{
InitializeComponent();
Translate();
_defaultBranches = defaultBranches;
}
示例3: FormCommitCount
public FormCommitCount(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
this.Loading.Image = global::GitUI.Properties.Resources.loadingpanel;
Translate();
}
示例4: FormDiff
public FormDiff(GitUICommands aCommands, RevisionGrid revisionGrid, string baseCommitSha,
string headCommitSha, string baseCommitDisplayStr, string headCommitDisplayStr) : base(aCommands)
{
RevisionGrid = revisionGrid;
_baseCommitDisplayStr = baseCommitDisplayStr;
_headCommitDisplayStr = headCommitDisplayStr;
InitializeComponent();
Translate();
_toolTipControl.SetToolTip(btnAnotherBaseBranch, anotherBranchTooltip.Text);
_toolTipControl.SetToolTip(btnAnotherHeadBranch, anotherBranchTooltip.Text);
_toolTipControl.SetToolTip(btnAnotherBaseCommit, anotherCommitTooltip.Text);
_toolTipControl.SetToolTip(btnAnotherHeadCommit, anotherCommitTooltip.Text);
_toolTipControl.SetToolTip(btnSwap, btnSwapTooltip.Text);
if (!IsUICommandsInitialized)
{// UICommands is not initialized in translation unit test.
return;
}
_baseRevision = new GitRevision(Module, baseCommitSha);
_headRevision = new GitRevision(Module, headCommitSha);
_mergeBase = new GitRevision(Module, Module.GetMergeBase(_baseRevision.Guid, _headRevision.Guid));
lblBaseCommit.BackColor = AppSettings.DiffRemovedColor;
lblHeadCommit.BackColor = AppSettings.DiffAddedColor;
DiffFiles.SelectedIndexChanged += DiffFiles_SelectedIndexChanged;
DiffFiles.ContextMenuStrip = DiffContextMenu;
this.Load += (sender, args) => PopulateDiffFiles();
}
示例5: FormFormatPatch
public FormFormatPatch(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
MailFrom.Text = Module.GetEffectiveSetting("user.email");
}
示例6: FormCleanupRepository
public FormCleanupRepository(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent(); Translate();
PreviewOutput.ReadOnly = true;
checkBoxPathFilter_CheckedChanged(null, null);
}
示例7: FormSparseWorkingCopyViewModel
public FormSparseWorkingCopyViewModel([NotNull] GitUICommands gitcommands)
{
_gitcommands = gitcommands;
if(gitcommands == null)
throw new ArgumentNullException("gitcommands");
_isSparseCheckoutEnabled = _isSparseCheckoutEnabledAsSaved = GetCurrentSparseEnabledState();
}
示例8: FormSubmodules
public FormSubmodules(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
gitSubmoduleBindingSource.DataSource = modules;
}
示例9: FormSvnClone
public FormSvnClone(GitUICommands aCommands, EventHandler<GitModuleEventArgs> GitModuleChanged)
: base(aCommands)
{
this.GitModuleChanged = GitModuleChanged;
InitializeComponent();
this.Translate();
}
示例10: FormResetCurrentBranch
public FormResetCurrentBranch(GitUICommands aCommands, GitRevision Revision)
: base(aCommands)
{
this.Revision = Revision;
InitializeComponent(); Translate();
}
示例11: FormApplyPatch
public FormApplyPatch(GitUICommands aCommands)
: base(true, aCommands)
{
InitializeComponent(); Translate();
if (aCommands != null)
EnableButtons();
}
示例12: FormViewPatch
public FormViewPatch(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent(); Translate();
PatchManager = new PatchManager();
}
示例13: FormRebase
private FormRebase(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
helpImageDisplayUserControl1.Visible = !AppSettings.DontShowHelpImages;
}
示例14: FormFileHistory
internal FormFileHistory(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
_asyncLoader = new AsyncLoader();
// set tab page images
{
var imageList = new ImageList();
tabControl1.ImageList = imageList;
imageList.ColorDepth = ColorDepth.Depth8Bit;
imageList.Images.Add(global::GitUI.Properties.Resources.IconViewFile);
imageList.Images.Add(global::GitUI.Properties.Resources.IconDiff);
imageList.Images.Add(global::GitUI.Properties.Resources.IconBlame);
tabControl1.TabPages[0].ImageIndex = 0;
tabControl1.TabPages[1].ImageIndex = 1;
tabControl1.TabPages[2].ImageIndex = 2;
}
_filterBranchHelper = new FilterBranchHelper(toolStripBranchFilterComboBox, toolStripBranchFilterDropDownButton, FileChanges);
_filterRevisionsHelper = new FilterRevisionsHelper(toolStripRevisionFilterTextBox, toolStripRevisionFilterDropDownButton, FileChanges, toolStripRevisionFilterLabel, ShowFirstParent, form: this);
_formBrowseMenus = new FormBrowseMenus(FileHistoryContextMenu);
_formBrowseMenus.ResetMenuCommandSets();
_formBrowseMenus.AddMenuCommandSet(MainMenuItem.NavigateMenu, FileChanges.MenuCommands.GetNavigateMenuCommands());
_formBrowseMenus.AddMenuCommandSet(MainMenuItem.ViewMenu, FileChanges.MenuCommands.GetViewMenuCommands());
_formBrowseMenus.InsertAdditionalMainMenuItems(toolStripSeparator4);
}
示例15: FormDeleteBranch
public FormDeleteBranch(GitUICommands aCommands, string defaultBranch)
: base(aCommands)
{
InitializeComponent();
Translate();
_defaultBranch = defaultBranch;
}