protected void ButtonAdd_Click(object sender, EventArgs e) { string reporterName = this.TextReporterName.Text; string mediaName = this.TextMediaName.Text; string email = this.TextEmail.Text; this.TextReporterName.Text = string.Empty; this.TextMediaName.Text = string.Empty; this.TextEmail.Text = string.Empty; string name = reporterName + " (" + mediaName + ")"; if (reporterName.Length < 2) { name = mediaName; } List <string> categories = new List <string>(); foreach (ListItem item in this.CheckListCategories.Items) { if (item.Selected) { item.Selected = false; categories.Add(item.Text); } } Reporter.Create(name, email, categories.ToArray()); RepopulateReporterGrid(); }
private static void CreateReports(Configuration cfg, Reporter.IReporter html, Reporter.IReporter console, OSPCResult result) { if (html != null) { html.Create(cfg, result); } console.Create(cfg, result); }