本文整理汇总了C#中GitUIPluginInterfaces.GitUIBaseEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GitUIBaseEventArgs类的具体用法?C# GitUIBaseEventArgs怎么用?C# GitUIBaseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GitUIBaseEventArgs类属于GitUIPluginInterfaces命名空间,在下文中一共展示了GitUIBaseEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例3: CreateLocalBranchesForm
public CreateLocalBranchesForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
Translate();
m_gitUiCommands = gitUiCommands;
}
示例4: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands.GitUICommands.FormIcon;
}
示例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();
}
示例6: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(IGitPluginSettingsContainer settings, GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands.GitUICommands.FormIcon;
}
示例7: gitUiCommands_PostRegisterPlugin
void gitUiCommands_PostRegisterPlugin(object sender, GitUIBaseEventArgs e)
{
if (!_initialized)
_initialized = _phabricatorMenus.Initialize((Form)e.OwnerForm);
_phabricatorMenus.Update(e);
}
示例8: Execute
public void Execute(GitUIBaseEventArgs gitUiCommands)
{
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir))
return;
FormImpact form = new FormImpact();
form.ShowDialog();
}
示例9: Execute
public override bool Execute(GitUIBaseEventArgs gitUiCommands)
{
using (var frm = new GitFlowForm(gitUiCommands))
{
frm.ShowDialog(gitUiCommands.OwnerForm);
return frm.IsRefreshNeeded;
}
}
示例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();
}
示例11: ReleaseNotesGeneratorForm
public ReleaseNotesGeneratorForm(GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
Translate();
_gitUiCommands = gitUiCommands;
Icon = _gitUiCommands != null ? _gitUiCommands.GitUICommands.FormIcon : null;
}
示例12: Execute
public override bool Execute(GitUIBaseEventArgs gitUiCommands)
{
using (var form = new ProxySwitcherForm(this, Settings, gitUiCommands))
{
form.ShowDialog(gitUiCommands.OwnerForm);
}
return false;
}
示例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();
}
示例14: ProxySwitcherForm
public ProxySwitcherForm(IGitPluginSettingsContainer settings, GitUIBaseEventArgs gitUiCommands)
{
InitializeComponent();
this.Text = _pluginDescription.Text;
this.settings = settings;
this.gitCommands = gitUiCommands.GitModule;
}
示例15: StashPullRequestForm
public StashPullRequestForm(GitUIBaseEventArgs gitUiCommands,
ISettingsSource settings)
{
InitializeComponent();
_gitUiCommands = gitUiCommands;
_settingsContainer = settings;
}