本文整理汇总了C#中GitUI.GitUICommands类的典型用法代码示例。如果您正苦于以下问题:C# GitUICommands类的具体用法?C# GitUICommands怎么用?C# GitUICommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GitUICommands类属于GitUI命名空间,在下文中一共展示了GitUICommands类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FormRebase
private FormRebase(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
helpImageDisplayUserControl1.Visible = !Settings.DontShowHelpImages;
}
示例2: FormResetCurrentBranch
public FormResetCurrentBranch(GitUICommands aCommands, GitRevision Revision)
: base(aCommands)
{
this.Revision = Revision;
InitializeComponent(); Translate();
}
示例3: StartBrowseForm
public static FormBrowse StartBrowseForm(GitUICommands commands, Form form)
{
if (instance == null)
instance = commands.StartBrowseForm(form, "", run: false);
return instance;
}
示例4: FormBranchSmall
public FormBranchSmall(GitUICommands aCommands, string startPoint = null)
: base(aCommands)
{
_startPoint = startPoint;
InitializeComponent();
Translate();
}
示例5: FormSvnClone
public FormSvnClone(GitUICommands aCommands, GitModuleChangedEventHandler GitModuleChanged)
: base(aCommands)
{
this.GitModuleChanged = GitModuleChanged;
InitializeComponent();
this.Translate();
}
示例6: ViewPatch
public ViewPatch(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent(); Translate();
PatchManager = new PatchManager();
}
示例7: FormCommit_Form1
public void FormCommit_Form1()
{
app = new ApplicationContext();
var currentDir = Directory.GetCurrentDirectory();
string[] args = new string[] { "", "", currentDir }; // GitExtensionsTest\bin\Debug
if (args[2].EndsWith(@"bin\Debug"))
args[2] = Path.GetFullPath(currentDir + @"\..\..\..");
var dir = RevisionGridTest.GetWorkingDir(args);
Directory.SetCurrentDirectory(dir);
GitUICommands uCommands = new GitUICommands(dir);
Form = new FormCommitTest(uCommands);
Unstaged = Form.ListUnstaged;
Staged = Form.ListStaged;
app.MainForm = Form;
var browseForm = TestStatic.StartBrowseForm(uCommands, Form);
Form.LoadModule(browseForm.Module);
this.Unstaged.Subscribe();
this.Staged.Subscribe();
Form.Shown += Form_Shown;
Form.Show();
Application.Run(app);
}
示例8: FormApplyPatch
public FormApplyPatch(GitUICommands aCommands)
: base(true, aCommands)
{
InitializeComponent(); Translate();
if (aCommands != null)
EnableButtons();
}
示例9: FormAddFiles
public FormAddFiles(GitUICommands aCommands, string addFile)
: base(aCommands)
{
InitializeComponent();
Translate();
Filter.Text = addFile ?? ".";
}
示例10: FormSubmodules
public FormSubmodules(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
gitSubmoduleBindingSource.DataSource = modules;
}
示例11: FormSettings
public FormSettings(GitUICommands aCommands, SettingsPageReference initalPage = null)
: base(aCommands)
{
InitializeComponent();
Translate();
_initalPage = initalPage;
//if form is created for translation purpose
if (aCommands == null)
return;
// NEW:
_commonLogic = new CommonLogic(Module);
_checkSettingsLogic = new CheckSettingsLogic(_commonLogic, Module);
_checklistSettingsPage = new ChecklistSettingsPage(_commonLogic, _checkSettingsLogic, Module, this);
_checkSettingsLogic.ChecklistSettingsPage = _checklistSettingsPage; // TODO
_settingsPageRegistry.RegisterSettingsPage(_checklistSettingsPage);
_gitSettingsPage = new GitSettingsPage(_checkSettingsLogic, this);
_settingsPageRegistry.RegisterSettingsPage(_gitSettingsPage);
_gitExtensionsSettingsPage = new GitExtensionsSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_gitExtensionsSettingsPage);
_appearanceSettingsPage = new AppearanceSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_appearanceSettingsPage);
_colorsSettingsPage = new ColorsSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_colorsSettingsPage);
_startPageSettingsPage = new StartPageSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_startPageSettingsPage);
_globalSettingsSettingsPage = new GlobalSettingsSettingsPage(_commonLogic, _checkSettingsLogic, Module);
_settingsPageRegistry.RegisterSettingsPage(_globalSettingsSettingsPage);
_localSettingsSettingsPage = new LocalSettingsSettingsPage(_commonLogic, _checkSettingsLogic, Module);
_settingsPageRegistry.RegisterSettingsPage(_localSettingsSettingsPage);
_sshSettingsPage = new SshSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_sshSettingsPage);
_checklistSettingsPage.SshSettingsPage = _sshSettingsPage;
_scriptsSettingsPage = new ScriptsSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_scriptsSettingsPage);
_hotkeysSettingsPage = new HotkeysSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_hotkeysSettingsPage);
_shellExtensionSettingsPage = new ShellExtensionSettingsPage();
_settingsPageRegistry.RegisterSettingsPage(_shellExtensionSettingsPage);
// register all plugin pages
_settingsPageRegistry.RegisterPluginSettingsPages();
settingsTreeViewUserControl1.SetSettingsPages(_settingsPageRegistry, _initalPage);
}
示例12: FormDeleteBranch
public FormDeleteBranch(GitUICommands aCommands, string defaultBranch)
: base(aCommands)
{
InitializeComponent();
Translate();
_defaultBranch = defaultBranch;
}
示例13: FormGoToCommit
public FormGoToCommit(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
Translate();
tagsLoader = new AsyncLoader();
}
示例14: FormRevertCommitSmall
public FormRevertCommitSmall(GitUICommands aCommands, GitRevision Revision)
: base(aCommands)
{
this.Revision = Revision;
InitializeComponent(); Translate();
}
示例15: FormRevert
public FormRevert(GitUICommands aCommands, string fileName)
: base(aCommands)
{
this.fileName = fileName;
InitializeComponent();
Translate();
}