public InputFileViewModel(String folder, String selectedFolder, Entities.DocumentType docType) : this(folder, selectedFolder)//, fundInfo) { this.RequiresAdditionalInfo = docType.AdditionalSetup.GetValueOrDefault(); //int warrantsValue; //if (!string.IsNullOrEmpty(fundInfo) && // Int32.TryParse( // fundInfo.Split().GetValue(Array.IndexOf(fundInfo.ToLower().Split(), "warrants") - 1).ToString(), out warrantsValue)) //{ // this.ShowAdditionalInfo = warrantsValue > 0; //} }
public DocTypeViewModel(Entities.DocumentType docType) { this.Id = docType.DocumentTypeID; this.Code = docType.BravuraDocTypeCode; this.Description = docType.DocumentTypeName; }