private void Process() { string FileName1 = (McFileUp1.PostedFile == null) ? "" : McFileUp1.PostedFile.FileName; string FileName2 = (McFileUp2.PostedFile == null) ? "" : McFileUp2.PostedFile.FileName; string FileName3 = (McFileUp3.PostedFile == null) ? "" : McFileUp3.PostedFile.FileName; System.IO.Stream Stream1 = (McFileUp1.PostedFile == null) ? null : McFileUp1.PostedFile.InputStream; System.IO.Stream Stream2 = (McFileUp2.PostedFile == null) ? null : McFileUp2.PostedFile.InputStream; System.IO.Stream Stream3 = (McFileUp3.PostedFile == null) ? null : McFileUp3.PostedFile.InputStream; int nodeType = ((FileName1 != "" && Stream1 != null) || (FileName2 != "" && Stream2 != null) || (FileName3 != "" && Stream3 != null)) ? (int)ForumStorage.NodeContentType.TextWithFiles : (int)ForumStorage.NodeContentType.Text; ArrayList alAttrs = new ArrayList(); foreach (ListItem liItem in cbList.Items) { if (liItem.Selected) { alAttrs.Add(liItem.Value); } } string sMessage = txtMessage.Text; sMessage = Util.CommonHelper.parsetext_br(sMessage); Issue2.AddForumMessage2(IncidentId, sMessage, nodeType, alAttrs, false, int.Parse(ddlStatus.SelectedValue), FileName1, Stream1, FileName2, Stream2, FileName3, Stream3); }