当前位置: 首页>>代码示例>>C#>>正文


C# GitUICommands类代码示例

本文整理汇总了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 ?? ".";
 }
开发者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


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