コード例 #1
0
 // <summary>
 /// updates the background for the developer
 /// </summary>
 /// <param name="filename">filename of background</param>
 public void UpdateBackground(string filename)
 {
     this.Background = filename;
     DbDeveloper.UpdateBackground(filename, Id);
 }
コード例 #2
0
 /// <summary>
 /// updates the icon for the developer
 /// </summary>
 /// <param name="filename">filename of icon</param>
 public void UpdateIcon(string filename)
 {
     this.Icon = filename;
     DbDeveloper.UpdateIcon(filename, Id);
 }
コード例 #3
0
 /// <summary>
 /// Updates the data for the developer
 /// </summary>
 /// <param name="name">new developer name</param>
 /// <param name="about">new developer bio</param>
 public void UpdateData(string name, string about)
 {
     this.About         = about;
     this.DeveloperName = name;
     DbDeveloper.UpdateData(name, about, Id);
 }
コード例 #4
0
 /// <summary>
 /// Adds a user to a developer company
 /// </summary>
 /// <param name="userId">id of user</param>
 public void AddUser(int userId)
 {
     DbDeveloper.SetUserDeveloper(userId, this.Id);
     DbConnections.FulfillRequest(userId, this.Id);
 }
コード例 #5
0
 /// <summary>
 /// inserts a new developer into the database
 /// </summary>
 /// <param name="devName">name of developer</param>
 public Developer(string devName)
 {
     this.Id            = DbDeveloper.AddDeveloper(devName);
     this.DeveloperName = devName;
 }
コード例 #6
0
 /// <summary>
 /// Returns a developer from id
 /// </summary>
 /// <param name="id">id of developer</param>
 public Developer(int id) : this(DbDeveloper.GetDeveloper(id))
 {
 }