PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Plugins/Gerrit/FormPluginInformation.cs

https://github.com/eisnerd/gitextensions
C# | 37 lines | 32 code | 5 blank | 0 comment | 0 complexity | 519ea140e8652f7ad78179998e7f32d2 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Diagnostics;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. using GitUI;
  11. namespace Gerrit
  12. {
  13. public partial class FormPluginInformation : GitExtensionsForm
  14. {
  15. public FormPluginInformation()
  16. {
  17. InitializeComponent();
  18. Translate();
  19. }
  20. public static void ShowSubmitted(IWin32Window owner, string change)
  21. {
  22. var form = new FormPluginInformation();
  23. form._NO_TRANSLATE_TargetLabel.Text = change;
  24. form._NO_TRANSLATE_TargetLabel.Click += (s, e) => Process.Start(change);
  25. form.ShowDialog(owner);
  26. }
  27. private void _NO_TRANSLATE_TargetLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  28. {
  29. Process.Start(@"http://github.com/openstack-ci/git-review#git-review");
  30. }
  31. }
  32. }