本文整理汇总了C#中IGitUICommands类的典型用法代码示例。如果您正苦于以下问题:C# IGitUICommands类的具体用法?C# IGitUICommands怎么用?C# IGitUICommands使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IGitUICommands类属于命名空间,在下文中一共展示了IGitUICommands类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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");
}
示例3: FormGerritPublish
public FormGerritPublish(IGitUICommands uiCommand)
{
_uiCommand = uiCommand;
InitializeComponent();
Translate();
}
示例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>();
}
示例5: ShelveDialog
public ShelveDialog(IGitUICommands commands, ShelveSettingsContainer settings)
{
_commands = commands;
_settings = settings;
InitializeComponent();
InitializeFromSettings();
}
示例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>();
}
示例7: Register
public override void Register(IGitUICommands gitUiCommands)
{
base.Register(gitUiCommands);
currentGitUiCommands = gitUiCommands;
currentGitUiCommands.PostSettings += OnPostSettings;
RecreateObservable();
}
示例8: GitTfsDialog
public GitTfsDialog(IGitUICommands commands, SettingsContainer settings, IEnumerable<string> tfsRemotes)
{
_commands = commands;
_settings = settings;
InitializeComponent();
TfsRemoteComboBox.DataSource = tfsRemotes.ToList();
InitializeFromSettings();
}
示例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;
}
示例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);
}
示例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.";
}
示例12: Unregister
public override void Unregister(IGitUICommands gitUiCommands)
{
CancelBackgroundOperation();
if (currentGitUiCommands != null)
{
currentGitUiCommands.PostSettings -= OnPostSettings;
currentGitUiCommands = null;
}
base.Unregister(gitUiCommands);
}
示例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();
}
示例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;
}
示例15: FormGitReview
public FormGitReview(IGitUICommands aUICommands)
: base(true)
{
InitializeComponent();
Translate();
UICommands = (GitUICommands)aUICommands;
if (UICommands != null)
{
LoadGitReview();
_NO_TRANSLATE_GitReviewEdit.TextLoaded += GitReviewFileLoaded;
}
}