Example #1
0
 internal async Task <bool> login()
 {
     if (!await pf.LoginKong())
     {
         DialogResult dr = MessageBox.Show("Failed to log in.\nYour kong ID: " + KongregateId + "\nYour auth ticket: " + token +
                                           "\nLenght of token should be 64, yours is: " + token.Length + "\nDo you want help with creating MacroSettings file?",
                                           "Settings Question", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
         if (dr == DialogResult.Yes)
         {
             MacroSettingsHelper msh = new MacroSettingsHelper(appSettings);
             msh.Show();
             msh.BringToFront();
         }
         return(false);
     }
     return(true);
 }