• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GitUICommands类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中GitUICommands的典型用法代码示例。如果您正苦于以下问题:C# GitUICommands类的具体用法?C# GitUICommands怎么用?C# GitUICommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GitUICommands类属于命名空间,在下文中一共展示了GitUICommands类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: FormAddFiles

 public FormAddFiles(GitUICommands aCommands, string addFile)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     Filter.Text = addFile ?? ".";
 }
开发者ID:Carbenium,项目名称:gitextensions,代码行数:7,代码来源:FormAddFiles.cs


示例2: FormDeleteBranch

 public FormDeleteBranch(GitUICommands aCommands, IEnumerable<string> defaultBranches)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     _defaultBranches = defaultBranches;
 }
开发者ID:akrisiun,项目名称:gitextensions,代码行数:7,代码来源:FormDeleteBranch.cs


示例3: FormCommitCount

 public FormCommitCount(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent();
     this.Loading.Image = global::GitUI.Properties.Resources.loadingpanel;
     Translate();
 }
开发者ID:robin521111,项目名称:gitextensions,代码行数:7,代码来源:FormCommitCount.cs


示例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();
        }
开发者ID:vbjay,项目名称:gitextensions,代码行数:34,代码来源:FormDiff.cs


示例5: FormFormatPatch

 public FormFormatPatch(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     MailFrom.Text = Module.GetEffectiveSetting("user.email");
 }
开发者ID:pcworld,项目名称:gitextensions,代码行数:7,代码来源:FormFormatPatch.cs


示例6: FormCleanupRepository

 public FormCleanupRepository(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent(); Translate();
     PreviewOutput.ReadOnly = true;
     checkBoxPathFilter_CheckedChanged(null, null);
 }
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:7,代码来源:FormCleanupRepository.cs


示例7: FormSparseWorkingCopyViewModel

 public FormSparseWorkingCopyViewModel([NotNull] GitUICommands gitcommands)
 {
     _gitcommands = gitcommands;
     if(gitcommands == null)
         throw new ArgumentNullException("gitcommands");
     _isSparseCheckoutEnabled = _isSparseCheckoutEnabledAsSaved = GetCurrentSparseEnabledState();
 }
开发者ID:GEO-IASS,项目名称:gitextensions,代码行数:7,代码来源:FormSparseWorkingCopyViewModel.cs


示例8: FormSubmodules

 public FormSubmodules(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     gitSubmoduleBindingSource.DataSource = modules;
 }
开发者ID:ferow2k,项目名称:gitextensions,代码行数:7,代码来源:FormSubmodules.cs


示例9: FormSvnClone

 public FormSvnClone(GitUICommands aCommands, EventHandler<GitModuleEventArgs> GitModuleChanged)
     : base(aCommands)
 {
     this.GitModuleChanged = GitModuleChanged;
     InitializeComponent();
     this.Translate();
 }
开发者ID:Carbenium,项目名称:gitextensions,代码行数:7,代码来源:FormSvnClone.cs


示例10: FormResetCurrentBranch

        public FormResetCurrentBranch(GitUICommands aCommands, GitRevision Revision)
            : base(aCommands)
        {
            this.Revision = Revision;

            InitializeComponent(); Translate();
        }
开发者ID:neoandrew1000,项目名称:gitextensions,代码行数:7,代码来源:FormResetCurrentBranch.cs


示例11: FormApplyPatch

 public FormApplyPatch(GitUICommands aCommands)
     : base(true, aCommands)
 {
     InitializeComponent(); Translate();
     if (aCommands != null)
         EnableButtons();
 }
开发者ID:vbjay,项目名称:gitextensions,代码行数:7,代码来源:FormApplyPatch.cs


示例12: FormViewPatch

        public FormViewPatch(GitUICommands aCommands)
            : base(aCommands)
        {
            InitializeComponent(); Translate();

            PatchManager = new PatchManager();
        }
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:7,代码来源:FormViewPatch.cs


示例13: FormRebase

 private FormRebase(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     helpImageDisplayUserControl1.Visible = !AppSettings.DontShowHelpImages;
 }
开发者ID:holstebroe,项目名称:gitextensions,代码行数:7,代码来源:FormRebase.cs


示例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);
        }
开发者ID:vbjay,项目名称:gitextensions,代码行数:27,代码来源:FormFileHistory.cs


示例15: FormDeleteBranch

 public FormDeleteBranch(GitUICommands aCommands, string defaultBranch)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     _defaultBranch = defaultBranch;
 }
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:7,代码来源:FormDeleteBranch.cs


示例16: FormCheckoutBranch

 internal FormCheckoutBranch(GitUICommands aCommands)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     _rbResetBranchDefaultText = rbResetBranch.Text;
 }
开发者ID:vbjay,项目名称:gitextensions,代码行数:7,代码来源:FormCheckoutBranch.cs


示例17: FormPush

        public FormPush(GitUICommands aCommands)
            : base(aCommands)
        {
            InitializeComponent();
            Translate();

            if (!GitCommandHelpers.VersionInUse.SupportPushForceWithLease)
            {
                ckForceWithLease.Visible = false;
                ForcePushTags.DataBindings.Add("Checked", ForcePushBranches, "Checked",
                    formattingEnabled: false, updateMode: DataSourceUpdateMode.OnPropertyChanged);
            }
            else
            {
                ForcePushTags.DataBindings.Add("Checked", ckForceWithLease, "Checked",
                    formattingEnabled: false, updateMode: DataSourceUpdateMode.OnPropertyChanged);
                toolTip1.SetToolTip(ckForceWithLease, _forceWithLeaseTooltips.Text);
            }

            //can't be set in OnLoad, because after PushAndShowDialogWhenFailed()
            //they are reset to false
            if (aCommands != null)
            {
                _gitRemoteController = new GitRemoteController(Module);
                Init();
            }
        }
开发者ID:qgppl,项目名称:gitextensions,代码行数:27,代码来源:FormPush.cs


示例18: FormRenameBranch

 public FormRenameBranch(GitUICommands aCommands, string defaultBranch)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     Branches.Text = defaultBranch;
     oldName = defaultBranch;
 }
开发者ID:Carbenium,项目名称:gitextensions,代码行数:8,代码来源:FormRenameBranch.cs


示例19: FormAddToGitIgnore

 public FormAddToGitIgnore(GitUICommands aCommands, params string[] filePatterns)
     : base(aCommands)
 {
     InitializeComponent();
     Translate();
     if (filePatterns != null)
         FilePattern.Text = string.Join(Environment.NewLine, filePatterns);
 }
开发者ID:feinstaub,项目名称:gitextensions,代码行数:8,代码来源:FormAddToGitIgnore.cs


示例20: FormRevertCommit

        public FormRevertCommit(GitUICommands aCommands, GitRevision Revision)
            : base(aCommands)
        {
            this.Revision = Revision;

            InitializeComponent();
            Translate();
        }
开发者ID:kunigaku,项目名称:gitextensions,代码行数:8,代码来源:FormRevertCommit.cs



注:本文中的GitUICommands类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GitUIEventHandler类代码示例发布时间:2022-05-24
下一篇:
C# GitModuleChangedEventHandler类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap