public override string CreateSubject() { string cityName = city.SelectedItem as string; if (cityName == "Other") { cityName += (" " + GetTextBoxString(cityOther)); } string emergencyDeclared = ""; if (EmergencyDeclared != null) { emergencyDeclared = " Emergency Declared: " + (EmergencyDeclared == "emergencyDeclaredYes" ? "yes" : "no"); } return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_CityScan_" + cityName + emergencyDeclared); }
public override string CreateSubject() { return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_EOC213RR_" + incidentName.Text); }
public override string CreateSubject() { return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_ICS213_" + Subject); }
public override string CreateSubject() { return($"{MessageNo}_{Severity?.ToUpper()[0]}/{HandlingOrder?.ToUpper()[0]}_ICS213_{subject.Text}"); }
// public override string CreateSubject(ref PacketMessage packetMessage) // { ////1234_O / R_EOC Logistics Req_Mountain View //var severityField = from formField in packetMessage.FormFieldArray where formField.ControlName == "severity" select formField; //var handlingOrderField = from formField in packetMessage.FormFieldArray where formField.ControlName == "handlingOrder" select formField; //var cityField = packetMessage.FormFieldArray.Where(formField => formField.ControlName == "sectionAgencyCity").FirstOrDefault(); //return (MessagegNo + "_" + severityField.First().ControlContent.ToUpper()[0] + "/" + handlingOrderField.First().ControlContent.ToUpper()[0] + "_EOC Logistics Req_" + SectionAgencyCity); // } public override string CreateSubject() { return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_EOC Logistics Req_" + sectionAgencyCity.SelectedItem); }
public override string CreateSubject() { return(MessageNo + '_' + Severity?.ToUpper()[0] + '/' + HandlingOrder?.ToUpper()[0] + "_OAShelterStat_" + '_' + incidentName.Text); }