示例#1
0
 public void ChangeUserName_Confirm_BTN_CLick()
 {
     if (ProfileChange_INPT_Box.New_INPT.text.Length > 3)
     {
         if (UserUtilities.UsernameClean(ProfileChange_INPT_Box.New_INPT.text))
         {
             UserUtilities.ChangeUsername(ProfileChange_INPT_Box.New_INPT.text);
             ProfileChange_INPT_Box_Click();
             Profile_PNL.UpdateProfile();
         }
         else
         {
             DisplayNotification(true, "Username inappropriate");
         }
     }
     else
     {
         DisplayNotification(true, "Username should be 3 or more characters long");
     }
 }