本文整理汇总了C#中IGitUICommands类的典型用法代码示例。如果您正苦于以下问题:C# IGitUICommands类的具体用法?C# IGitUICommands怎么用?C# IGitUICommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IGitUICommands类属于命名空间,在下文中一共展示了IGitUICommands类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Register
public override void Register(IGitUICommands gitUiCommands)
{
//Connect to events -> connect to all main events because in theory the prebrowse
//event can be missed since plugins are loaded asynchronous
gitUiCommands.PreBrowse += GitUiCommandsPreBrowse;
gitUiCommands.PreCommit += GitUiCommandsPreBrowse;
}
开发者ID:dmay,项目名称:gitextensions,代码行数:7,代码来源:AutoCheckForUpdates.cs
示例2: Register
public void Register(IGitUICommands gitUiCommands)
{
Settings.AddSetting("Code files",
"*.c;*.cpp;*.h;*.hpp;*.inl;*.idl;*.asm;*.inc;*.cs;*.xsd;*.wsdl;*.xml;*.htm;*.html;*.css;*.vbs;*.vb;*.sql;*.aspx;*.asp;*.php;*.nav;*.pas;*.py;*.rb");
Settings.AddSetting("Directories to ignore (EndsWith)", "\\Debug;\\Release;\\obj;\\bin;\\lib");
Settings.AddSetting("Ignore submodules (true/false)", "true");
}
开发者ID:jystic,项目名称:gitextensions,代码行数:7,代码来源:GitStatisticsPlugin.cs
示例3: FormGerritPublish
public FormGerritPublish(IGitUICommands uiCommand)
{
_uiCommand = uiCommand;
InitializeComponent();
Translate();
}
开发者ID:Nehle,项目名称:gitextensions,代码行数:7,代码来源:FormGerritPublish.cs
示例4: GetTfsRemotes
private static IEnumerable<string> GetTfsRemotes(IGitUICommands commands)
{
var result = commands.GitCommand("config --get-regexp tfs-remote");
var matches = Regex.Matches(result, @"tfs-remote\.([^\.]+)");
return matches.Count > 0
? matches.Cast<Match>().Select(g => g.Groups[1].Value).Distinct()
: Enumerable.Empty<string>();
}
开发者ID:pmiossec,项目名称:git-tfs-gitextensions-plugin,代码行数:8,代码来源:GitTfsPlugin.cs
示例5: ShelveDialog
public ShelveDialog(IGitUICommands commands, ShelveSettingsContainer settings)
{
_commands = commands;
_settings = settings;
InitializeComponent();
InitializeFromSettings();
}
开发者ID:lucianm,项目名称:git-tfs-gitextensions-plugin,代码行数:8,代码来源:ShelveDialog.cs
示例6: GetTfsRemotes
private static IEnumerable<string> GetTfsRemotes(IGitUICommands commands)
{
var result = commands.GitCommand("config --get-regexp tfs-remote");
var match = Regex.Match(result, @"tfs-remote\.([^\.]+)");
return match.Success
? match.Groups.Cast<Group>().Skip(1).Select(g => g.Value)
: Enumerable.Empty<string>();
}
开发者ID:sc68cal,项目名称:git-tfs-gitextensions-plugin,代码行数:8,代码来源:GitTfsPlugin.cs
示例7: Register
public override void Register(IGitUICommands gitUiCommands)
{
base.Register(gitUiCommands);
currentGitUiCommands = gitUiCommands;
currentGitUiCommands.PostSettings += OnPostSettings;
RecreateObservable();
}
开发者ID:feinstaub,项目名称:gitextensions,代码行数:9,代码来源:BackgroundFetchPlugin.cs
示例8: GitTfsDialog
public GitTfsDialog(IGitUICommands commands, SettingsContainer settings, IEnumerable<string> tfsRemotes)
{
_commands = commands;
_settings = settings;
InitializeComponent();
TfsRemoteComboBox.DataSource = tfsRemotes.ToList();
InitializeFromSettings();
}
开发者ID:git-tfs,项目名称:git-tfs-gitextensions-plugin,代码行数:9,代码来源:GitTfsDialog.cs
示例9: Register
public void Register(IGitUICommands gitUiCommands)
{
// Register settings
Settings.AddSetting("Enabled (true / false)", "false");
Settings.AddSetting("Path to msbuild.exe", FindMsBuild());
Settings.AddSetting("msbuild.exe arguments", "/p:Configuration=Debug");
// Connect to events
gitUiCommands.PostUpdateSubmodules += GitUiCommandsPostUpdateSubmodules;
}
开发者ID:rschoening,项目名称:gitextensions,代码行数:10,代码来源:AutoCompileSubModules.cs
示例10: Register
public void Register(IGitUICommands gitUICommands)
{
//Register settings
Settings.AddSetting("Enabled (true / false)", "true");
Settings.AddSetting("Check every # days", "7");
Settings.AddSetting("Last check (yyyy/M/dd)", new DateTime(2000, 1, 1).ToString("yyyy/M/dd", CultureInfo.InvariantCulture));
//Connect to events
gitUICommands.PreBrowse += new GitUIEventHandler(gitUICommands_PreBrowse);
}
开发者ID:spidercat,项目名称:gitextensions,代码行数:10,代码来源:AutoCheckForUpdates.cs
示例11: DeleteUnusedBranchesForm
public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
{
InitializeComponent();
this.referenceBranch = referenceBranch;
this.days = days;
this.gitCommands = gitCommands;
_gitUICommands = gitUICommands;
_gitPlugin = gitPlugin;
instructionLabel.Text = "Choose branches to delete. Only branches that are fully merged in '" + referenceBranch + "' will be deleted.";
}
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:11,代码来源:DeleteUnusedBranchesForm.cs
示例12: Unregister
public override void Unregister(IGitUICommands gitUiCommands)
{
CancelBackgroundOperation();
if (currentGitUiCommands != null)
{
currentGitUiCommands.PostSettings -= OnPostSettings;
currentGitUiCommands = null;
}
base.Unregister(gitUiCommands);
}
开发者ID:feinstaub,项目名称:gitextensions,代码行数:12,代码来源:BackgroundFetchPlugin.cs
示例13: DeleteUnusedBranchesForm
public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
{
InitializeComponent();
this.referenceBranch = referenceBranch;
this.days = days;
this.gitCommands = gitCommands;
_gitUICommands = gitUICommands;
_gitPlugin = gitPlugin;
imgLoading.Image = IsMonoRuntime() ? Resources.loadingpanel_static : Resources.loadingpanel;
RefreshObsoleteBranches();
}
开发者ID:HuChundong,项目名称:gitextensions,代码行数:12,代码来源:DeleteUnusedBranchesForm.cs
示例14: Register
public void Register(IGitUICommands gitUiCommands)
{
//Register settings
Settings.AddSetting("Enabled (true / false)", "true");
Settings.AddSetting("Check every # days", "7");
Settings.AddSetting("Last check (yyyy/M/dd)",
new DateTime(2000, 1, 1).ToString("yyyy/M/dd", CultureInfo.InvariantCulture));
//Connect to events -> connect to all main events because in theory the prebrowse
//event can be missed since plugins are loaded asynchronous
gitUiCommands.PreBrowse += GitUiCommandsPreBrowse;
gitUiCommands.PreCommit += GitUiCommandsPreBrowse;
}
开发者ID:jystic,项目名称:gitextensions,代码行数:13,代码来源:AutoCheckForUpdates.cs
示例15: FormGitReview
public FormGitReview(IGitUICommands aUICommands)
: base(true)
{
InitializeComponent();
Translate();
UICommands = (GitUICommands)aUICommands;
if (UICommands != null)
{
LoadGitReview();
_NO_TRANSLATE_GitReviewEdit.TextLoaded += GitReviewFileLoaded;
}
}
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:13,代码来源:FormGitReview.cs
示例16: Register
public void Register(IGitUICommands gitUiCommands)
{
var existingKeys = Settings.GetAvailableSettings();
var settingsToAdd = from field in typeof(SettingKeys).GetFields(BindingFlags.Public | BindingFlags.Static)
let key = (string)field.GetValue(null)
where !existingKeys.Contains(key)
select key;
foreach (var settingToAdd in settingsToAdd)
{
Settings.AddSetting(settingToAdd, string.Empty);
}
}
开发者ID:pmiossec,项目名称:git-tfs-gitextensions-plugin,代码行数:14,代码来源:GitTfsPlugin.cs
示例17: Register
public void Register(IGitUICommands gitUiCommands)
{
Settings.AddSetting("Delete obsolete branches older than (days)", "30");
}
开发者ID:jystic,项目名称:gitextensions,代码行数:4,代码来源:DeleteUnusedBranchesPlugin.cs
示例18: Register
public void Register(IGitUICommands gitUiCommands)
{
Settings.AddSetting("OAuth Token", "");
if (GithubLoginInfo.OAuthToken.Length > 0)
{
github.setOAuth2Token(GithubLoginInfo.OAuthToken);
}
}
开发者ID:cocytus,项目名称:gitextensions,代码行数:9,代码来源:Github3.cs
示例19: Unregister
public override void Unregister(IGitUICommands gitUiCommands)
{
// Connect to events
gitUiCommands.PostUpdateSubmodules -= GitUiCommandsPostUpdateSubmodules;
}
开发者ID:robin521111,项目名称:gitextensions,代码行数:5,代码来源:AutoCompileSubModules.cs
示例20: Register
public void Register(IGitUICommands gitUiCommands)
{
}
开发者ID:Nehle,项目名称:gitextensions,代码行数:3,代码来源:GitImpactPlugin.cs
注:本文中的IGitUICommands类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论