Example #1
0
 /// <summary>
 /// Initialize information
 /// </summary>
 /// <param name="kind">InformationKind.Notify or InformationKind.Warning</param>
 /// <param name="id">identification string, this used for remove duplication.</param>
 /// <param name="header">one-liner description</param>
 /// <param name="detail">detail description</param>
 public AppInformation(AppInformationKind kind, string id, string header, string detail)
 {
     if (kind == AppInformationKind.Error)
         throw new ArgumentException("you should use another overload.");
     this.Id = id;
     this.Kind = kind;
     this.Header = header;
     this.Detail = detail;
 }
Example #2
0
 /// <summary>
 /// Initialize information
 /// </summary>
 /// <param name="kind">InformationKind.Error</param>
 /// <param name="id">identification string, this used for remove duplication.</param>
 /// <param name="header">one-liner description</param>
 /// <param name="detail">detail description</param>
 /// <param name="actionDesc">description of the action</param>
 /// <param name="act">fix action</param>
 public AppInformation(AppInformationKind kind, string id, string header, string detail,
     string actionDesc, Action act)
 {
     if (kind != AppInformationKind.Error)
         throw new ArgumentException("you should use another overload.");
     this.Id = id;
     this.Kind = kind;
     this.Header = header;
     this.Detail = detail;
     this.ActionDescription = actionDesc;
     this.UserAction = act;
 }