Ejemplo n.º 1
0
        public void SetArcheoObjInCol(int choiseSearch, string title, string code, string typOfBuild, string height, string width, string depth, string typOfCoordinate, string coordinate, string description, string imagelink, string shortPath, string particularities)
        {
            ArcheoObject archeoObj = new ArcheoObject();

            archeoObj.SetCode(code);
            archeoObj.SetCoordinate(coordinate);
            archeoObj.SetDepth(int.Parse(depth));
            archeoObj.SetDescription(description);
            archeoObj.SetHeight(int.Parse(height));
            archeoObj.SetImagelink(imagelink);
            archeoObj.SetParticularities(particularities);
            archeoObj.SetShortPath(shortPath);
            archeoObj.SetTitle(title);
            archeoObj.SetTypOfBuild(typOfBuild);
            archeoObj.SetTypOfCoordinate(typOfCoordinate);
            archeoObj.SetWidth(int.Parse(width));
            SetArcheoObjInCol(choiseSearch, archeoObj);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// create new Archeo Object
        /// </summary>
        /// <param name="title">Title</param>
        /// <param name="code">Code</param>
        /// <param name="typOfBuild">Type of Build</param>
        /// <param name="height">height of object</param>
        /// <param name="width">width of object</param>
        /// <param name="depth">dept of object</param>
        /// <param name="typOfCoordinate">Typ of coordinate</param>
        /// <param name="coordinate">coordinate</param>
        /// <param name="description">Description</param>
        /// <param name="imagelink">image in filesystem</param>
        /// <param name="particularities">particularities</param>
        public void AddArcheoObjectToCol(string title, string code, string typOfBuild, string height, string width, string depth, string typOfCoordinate, string coordinate, string description, string imagelink, string shortPath, string particularities)
        {
            ArcheoObject archeoObj = new ArcheoObject();

            archeoObj.SetTitle(title);
            archeoObj.SetCode(code);
            archeoObj.SetTypOfBuild(typOfBuild);
            //todo Wenn nicht umwandelbarer String, dann 0!
            try
            {
                archeoObj.SetHeight(int.Parse(height));
            }
            catch (Exception)
            {
                archeoObj.SetHeight(0);
            }
            try
            {
                archeoObj.SetWidth(int.Parse(width));
            }
            catch (Exception)
            {
                archeoObj.SetWidth(0);
            }
            try
            {
                archeoObj.SetDepth(int.Parse(depth));
            }
            catch (Exception)
            {
                archeoObj.SetDepth(0);
            }
            archeoObj.SetTypOfCoordinate(typOfCoordinate);
            archeoObj.SetCoordinate(coordinate);
            archeoObj.SetDescription(description);
            archeoObj.SetImagelink(imagelink);
            archeoObj.SetShortPath(shortPath);
            archeoObj.SetParticularities(particularities);
            archeoObjectCol.Add(archeoObj);
        }