示例#1
0
 public static void RemoveSkill(string skill, int userid)
 {
     //Call Skill class to remove
     Skill s = new Skill(userid, skill);
     s.Remove();
 }
示例#2
0
 /// <summary>
 /// Removes a skill from the main user
 /// </summary>
 /// <param name="name">The name of the skill</param>
 /// <param name="message">The message of the error</param>
 /// <returns>Success</returns>
 public bool RemoveSkill(string name, out string message)
 {
     Skill s = new Skill(MainUser.ID, name);
     s.Remove();
     message = "Skill removed";
     return true;
 }
示例#3
0
 /// <summary>
 /// Inserts skills for specified account
 /// </summary>
 /// <param name="skill">The skill to insert</param>
 /// <param name="userid">The ID of the account</param>
 public static void AddSkill(string skill, int userid)
 {
     //Call Skill class to add
     Skill s = new Skill(userid, skill);
     s.Add();
 }
示例#4
0
 /// <summary>
 /// Adds a skill to the main user
 /// </summary>
 /// <param name="name">The name of the skill</param>
 /// <param name="message">The message of the error</param>
 /// <returns>Success</returns>
 public bool AddSkill(string name, out string message)
 {
     Skill s = new Skill(MainUser.ID, name);
     s.Add();
     message = "Skill added";
     return true;
 }