Beispiel #1
0
 public bool Execute(GitUIBaseEventArgs gitUiCommands)
 {
     if (GithubLoginInfo.OAuthToken.Length == 0)
     {
         using (var frm = new OAuth()) frm.ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
     }
     else
     {
         MessageBox.Show(gitUiCommands.OwnerForm as IWin32Window, "You already have an OAuth token. To get a new one, delete your old one in Plugins > Settings first.");
     }
     return false;
 }
Beispiel #2
0
 public override bool Execute(GitUIBaseEventArgs gitUiCommands)
 {
     if (string.IsNullOrEmpty(GithubLoginInfo.OAuthToken))
     {
         using (var frm = new OAuth())
             frm.ShowDialog(gitUiCommands.OwnerForm);
     }
     else
     {
         MessageBox.Show(gitUiCommands.OwnerForm, "You already have an OAuth token. To get a new one, delete your old one in Plugins > Settings first.");
     }
     return false;
 }