private void HandleSpecialistRegister(string username, string password, UserAccount user) { if (Authorizer.AddNewSpecialistAuthorization(username, password, DataEncryptor.FileKey)) { this.astrandServer.Transmit(new Message(Message.ID.SPECIALIST_REGISTER, Message.State.OK, null), user); } else { this.astrandServer.Transmit(new Message(Message.ID.SPECIALIST_REGISTER, Message.State.ERROR, Encoding.UTF8.GetBytes("Username is already in use!")), user); } }