コード例 #1
0
ファイル: Account.cs プロジェクト: chaoskie/Ict4Participation
 /// <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();
 }
コード例 #2
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;
 }