Ejemplo n.º 1
0
 public TicketFieldsTracker()
 {
     Subject = new FieldDetails <string>
     {
         Question = "Please give a brief title for the problem you encountered.",
         Content  = "",
         IsFilled = false
     };
     Description = new FieldDetails <string>
     {
         Question = "Please describe the details of problem",
         Content  = "",
         IsFilled = false
     };
     Platform = new FieldDetails <string>
     {
         Question         = "What was the device you used when you ran into the issue? \r\n[M:]Windows\r\n[M:]Windows Phone\r\n[M:]Mac\r\n[M:]iOS\r\n[M:]Android",
         Content          = "",
         IsFilled         = false,
         FieldRegexString = "Windows|Windows Phone|Mac|iOS|Android"
     };
     UserEmail = new FieldDetails <string>
     {
         Question         = "Please provide an email so that we can contact you.",
         Content          = "",
         IsFilled         = false,
         FieldRegexString = TextUtilities.EmailRegexString
     };
     this.currentFieldType = TicketFieldType.None;
     this.ticketSummary    = new string[Enum.GetNames(typeof(TicketFieldType)).Length];
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Cancels editing process.
 /// </summary>
 public void CancelEditAnswer()
 {
     Subject.IsFilled     = true;
     Description.IsFilled = true;
     Platform.IsFilled    = true;
     UserEmail.IsFilled   = true;
     currentFieldType     = TicketFieldType.Email;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Prepares this tracking object to be ready for editing.
 /// </summary>
 /// <param name="editField">The field to be edited</param>
 public void SetupEditAnswer(TicketFieldType editField)
 {
     this.currentFieldType      = editField;
     this.CurrentField.IsFilled = false;
 }