Пример #1
0
 protected override void CommitInput()
 {
     try
     {
         GwupeClientAppContext.CurrentAppContext.TeamManager.SignupTeam(
             UiUtils.GetFieldValue <String>(Teamname, Dispatcher),
             UiUtils.GetFieldValue <String>(Username, Dispatcher),
             UiUtils.GetFieldValue <String>(Location, Dispatcher),
             UiUtils.GetFieldValue <String>(Email, Dispatcher),
             UiUtils.GetFieldValue <bool>(Supporter, Dispatcher)
             );
         TeamHandle = UiUtils.GetFieldValue <String>(Username, Dispatcher);
     }
     catch (DataSubmissionException ex)
     {
         Logger.Error("Failed to signup team : " + ex.Message);
         throw ex;
     }
     catch (Exception ex)
     {
         Logger.Warn("Failed to signup : " + ex.Message);
         throw new DataSubmissionException();
     }
 }