本文整理汇总了C#中GitUIPluginInterfaces.GitUIBaseEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GitUIBaseEventArgs类的具体用法?C# GitUIBaseEventArgs怎么用?C# GitUIBaseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GitUIBaseEventArgs类属于GitUIPluginInterfaces命名空间,在下文中一共展示了GitUIBaseEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Execute
public override bool Execute(GitUIBaseEventArgs gitUIEventArgs)
{
if (string.IsNullOrEmpty(gitUIEventArgs.GitModule.WorkingDir))
return false;
using (var formGitStatistics =
new FormGitStatistics(gitUIEventArgs.GitModule, CodeFiles[Settings])
{
DirectoriesToIgnore = IgnoreDirectories[Settings]
})
{
if (IgnoreSubmodules[Settings].Value)
{
foreach (var submodule in gitUIEventArgs.GitModule.GetSubmodulesInfo())
{
formGitStatistics.DirectoriesToIgnore += ";";
formGitStatistics.DirectoriesToIgnore += Path.Combine(gitUIEventArgs.GitModule.WorkingDir, submodule.LocalPath);
}
}
formGitStatistics.DirectoriesToIgnore = formGitStatistics.DirectoriesToIgnore.Replace("/", "\\");
formGitStatistics.WorkingDir = new DirectoryInfo(gitUIEventArgs.GitModule.WorkingDir);
formGitStatistics.ShowDialog(gitUIEventArgs.OwnerForm);
}
return false;
}
开发者ID:HuChundong,项目名称:gitextensions,代码行数:28,代码来源:GitStatisticsPlugin.cs
示例2: Execute
public bool Execute(GitUIBaseEventArgs gitUiCommands)
{
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir))
return false;
using (var formGitStatistics =
new FormGitStatistics(Settings.GetSetting("Code files"))
{
DirectoriesToIgnore =
Settings.GetSetting("Directories to ignore (EndsWith)")
})
{
if (Settings.GetSetting("Ignore submodules (true/false)")
.Equals("true", StringComparison.InvariantCultureIgnoreCase))
{
foreach (var submodule in gitUiCommands.GitCommands.GetSubmodules())
{
formGitStatistics.DirectoriesToIgnore += ";";
formGitStatistics.DirectoriesToIgnore += gitUiCommands.GitWorkingDir + submodule.LocalPath;
}
}
formGitStatistics.DirectoriesToIgnore = formGitStatistics.DirectoriesToIgnore.Replace("/", "\\");
formGitStatistics.WorkingDir = new DirectoryInfo(gitUiCommands.GitWorkingDir);
formGitStatistics.ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
}
return false;
}
开发者ID:nickmayer,项目名称:gitextensions,代码行数:30,代码来源:GitStatisticsPlugin.cs
示例3: CreateLocalBranchesForm
public CreateLocalBranchesForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
Translate();
m_gitUiCommands = gitUiCommands;
}
开发者ID:Carbenium,项目名称:gitextensions,代码行数:7,代码来源:CreateLocalBranchesForm.cs
示例4: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands.GitUICommands.FormIcon;
}
开发者ID:mfloryan,项目名称:gitextensions,代码行数:7,代码来源:ReleaseNotesGeneratorForm.cs
示例5: GitUiCommandsPreBrowse
private void GitUiCommandsPreBrowse(object sender, GitUIBaseEventArgs e)
{
//Only check at startup when plugin is enabled
if (!Settings.GetSetting("Enabled (true / false)").Equals("true", StringComparison.InvariantCultureIgnoreCase))
return;
int days;
if (!int.TryParse(Settings.GetSetting("Check every # days"), out days))
days = 7;
try
{
if (DateTime.ParseExact(
Settings.GetSetting("Last check (yyyy/M/dd)"),
"yyyy/M/dd",
CultureInfo.InvariantCulture).AddDays(days) >= DateTime.Now)
return;
}
catch (FormatException)
{
}
finally
{
Settings.SetSetting("Last check (yyyy/M/dd)",
DateTime.Now.ToString("yyyy/M/dd", CultureInfo.InvariantCulture));
}
var updateForm = new Updates(e.GitVersion) {AutoClose = true};
updateForm.ShowDialog();
}
开发者ID:jystic,项目名称:gitextensions,代码行数:30,代码来源:AutoCheckForUpdates.cs
示例6: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(IGitPluginSettingsContainer settings, GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands.GitUICommands.FormIcon;
}
开发者ID:Copro,项目名称:gitextensions,代码行数:7,代码来源:ReleaseNotesGeneratorForm.cs
示例7: gitUiCommands_PostRegisterPlugin
void gitUiCommands_PostRegisterPlugin(object sender, GitUIBaseEventArgs e)
{
if (!_initialized)
_initialized = _phabricatorMenus.Initialize((Form)e.OwnerForm);
_phabricatorMenus.Update(e);
}
开发者ID:hach-que,项目名称:gitextensions,代码行数:7,代码来源:PhabricatorPlugin.cs
示例8: Execute
public void Execute(GitUIBaseEventArgs gitUiCommands)
{
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir))
return;
FormImpact form = new FormImpact();
form.ShowDialog();
}
开发者ID:rschoening,项目名称:gitextensions,代码行数:8,代码来源:GitImpactPlugin.cs
示例9: Execute
public override bool Execute(GitUIBaseEventArgs gitUiCommands)
{
using (var frm = new GitFlowForm(gitUiCommands))
{
frm.ShowDialog(gitUiCommands.OwnerForm);
return frm.IsRefreshNeeded;
}
}
开发者ID:Carbenium,项目名称:gitextensions,代码行数:8,代码来源:GitFlowPlugin.cs
示例10: Execute
public void Execute(GitUIBaseEventArgs gitUiCommands)
{
float threshold;
if (!float.TryParse(Settings.GetSetting("Find large files bigger than (Mb)"), out threshold))
threshold = 1;
new FindLargeFilesForm(threshold, gitUiCommands).ShowDialog();
}
开发者ID:antis81,项目名称:gitextensions,代码行数:8,代码来源:FindLargeFilesPlugin.cs
示例11: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
Translate();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands != null ? _gitUiCommands.GitUICommands.FormIcon : null;
}
开发者ID:Carbenium,项目名称:gitextensions,代码行数:8,代码来源:ReleaseNotesGeneratorForm.cs
示例12: Execute
public override bool Execute(GitUIBaseEventArgs gitUiCommands)
{
using (var form = new ProxySwitcherForm(this, Settings, gitUiCommands))
{
form.ShowDialog(gitUiCommands.OwnerForm);
}
return false;
}
开发者ID:qgppl,项目名称:gitextensions,代码行数:8,代码来源:ProxySwitcherPlugin.cs
示例13: Execute
public void Execute(GitUIBaseEventArgs gitUiCommands)
{
int days;
if (!int.TryParse(Settings.GetSetting("Delete obsolete branches older than (days)"), out days))
days = 30;
new DeleteUnusedBranchesForm(days, gitUiCommands.GitCommands).ShowDialog();
}
开发者ID:jystic,项目名称:gitextensions,代码行数:8,代码来源:DeleteUnusedBranchesPlugin.cs
示例14: ProxySwitcherForm
public ProxySwitcherForm(IGitPluginSettingsContainer settings, GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
this.Text = _pluginDescription.Text;
this.settings = settings;
this.gitCommands = gitUiCommands.GitModule;
}
开发者ID:jfjdautzenberg,项目名称:gitextensions,代码行数:8,代码来源:ProxySwitcherForm.cs
示例15: StashPullRequestForm
public StashPullRequestForm(GitUIBaseEventArgs gitUiCommands,
ISettingsSource settings)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
_settingsContainer = settings;
}
开发者ID:HuChundong,项目名称:gitextensions,代码行数:8,代码来源:StashPullRequestForm.cs
示例16: FindLargeFilesForm
public FindLargeFilesForm(float threshold, GitUIBaseEventArgs gitUiEventArgs)
{
InitializeComponent();
this.threshold = threshold;
this.gitUiCommands = gitUiEventArgs;
this.gitCommands = gitUiEventArgs.GitModule;
}
开发者ID:HuChundong,项目名称:gitextensions,代码行数:8,代码来源:FindLargeFilesForm.cs
示例17: Execute
public bool Execute(GitUIBaseEventArgs gitUiCommands)
{
int days;
if (!int.TryParse(Settings.GetSetting("Delete obsolete branches older than (days)"), out days))
days = 30;
new DeleteUnusedBranchesForm(days, gitUiCommands.GitCommands).ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
return true;
}
开发者ID:Nehle,项目名称:gitextensions,代码行数:9,代码来源:DeleteUnusedBranchesPlugin.cs
示例18: FindLargeFilesForm
public FindLargeFilesForm(float threshold, GitUIBaseEventArgs gitUiEventArgs)
{
InitializeComponent();
Translate();
this._threshold = threshold;
this._gitUiCommands = gitUiEventArgs;
this._gitCommands = gitUiEventArgs != null ? gitUiEventArgs.GitModule : null;
}
开发者ID:Carbenium,项目名称:gitextensions,代码行数:9,代码来源:FindLargeFilesForm.cs
示例19: Execute
public override bool Execute(GitUIBaseEventArgs gitUIEventArgs)
{
if (string.IsNullOrEmpty(gitUIEventArgs.GitModule.GitWorkingDir))
return false;
using (FormImpact form = new FormImpact(gitUIEventArgs.GitModule))
form.ShowDialog(gitUIEventArgs.OwnerForm as IWin32Window);
return false;
}
开发者ID:PaulGardens,项目名称:gitextensions,代码行数:9,代码来源:GitImpactPlugin.cs
示例20: Execute
public bool Execute(GitUIBaseEventArgs gitUiCommands)
{
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir))
return false;
FormImpact form = new FormImpact();
form.ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
return false;
}
开发者ID:Nehle,项目名称:gitextensions,代码行数:9,代码来源:GitImpactPlugin.cs
注:本文中的GitUIPluginInterfaces.GitUIBaseEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论