Exemplo n.º 1
0
        // WorldSurvey related I'm guessing? -Greg
        //
        //public MaterialEnum MaterialFromString(string v)
        //{
        //    if (v == null)
        //        return MaterialEnum.Unknown;

        //    foreach (MaterialEnum mat in Enum.GetValues(typeof(MaterialEnum)))
        //    {
        //        if (v.ToLower().Equals(mat.ToString().ToLower()))
        //            return mat;
        //    }

        //    return MaterialEnum.Unknown;
        //}

        // Obtain a World Survey from a World object here!
        public EDWorldSurvey GetWorldSurvey()
        {
            if (worldSurveyId > 0)
            {
                Repositories.WorldSurvey worldSurveyRepo = new Repositories.WorldSurvey();
                return(worldSurveyRepo.GetForId(worldSurveyId));
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 2
0
 // WorldSurvey related I'm guessing? -Greg
 //
 //public MaterialEnum MaterialFromString(string v)
 //{
 //    if (v == null)
 //        return MaterialEnum.Unknown;
 //    foreach (MaterialEnum mat in Enum.GetValues(typeof(MaterialEnum)))
 //    {
 //        if (v.ToLower().Equals(mat.ToString().ToLower()))
 //            return mat;
 //    }
 //    return MaterialEnum.Unknown;
 //}
 // Obtain a World Survey from a World object here!
 public EDWorldSurvey GetWorldSurvey()
 {
     if (worldSurveyId > 0)
     {
         Repositories.WorldSurvey worldSurveyRepo = new Repositories.WorldSurvey();
         return worldSurveyRepo.GetForId(worldSurveyId);
     }
     else
     {
         return null;
     }
 }