Esempio n. 1
0
 public string AddComment(int intValue, string stringValue) {
     if (Data.TheUserWhichHasCurrentlyLoggedIntoTheIssueTrackingSystem == null)
     {
         return string.Format("There is no currently logged in user");
     }
     if (!Data.issues1.ContainsKey(intValue + 1))
     {
         return string.Format("There is no issue with ID {0}", intValue + 1);
     }
     var issue = Data.issues1[intValue];
     var comment = new Kommentar(Data.TheUserWhichHasCurrentlyLoggedIntoTheIssueTrackingSystem, stringValue);
     issue.AddComment(comment);
     Data.dict[Data.TheUserWhichHasCurrentlyLoggedIntoTheIssueTrackingSystem].Add(comment);
     return string.Format("Comment added successfully to issue {0}", issue.Id);
 }
Esempio n. 2
0
 public void AddComment(Kommentar comment)
 {
     this.Comments.Add(comment);
 }
Esempio n. 3
0
 public void AddComment(Kommentar comment)
 {
     this.Comments.Add(comment);
 }