Esempio n. 1
0
        internal void ShowArcheoCatalogDetail(string code)
        {
            ArcheoCatalogDetail archeoDetail = new ArcheoCatalogDetail(this, code);

            SetArcheoDetail(code, archeoDetail);
            //throw new NotImplementedException();
        }
Esempio n. 2
0
        internal void GetBackArcheObjFromCol(ArcheoCatalogDetail archeoDetail)
        {
            int x = archeoObjectCol.LastIndexOf(GetArcheoObjFromCol(archeoDetail.getCode())) - 1;

            try
            {
                ArcheoObject archeoObj = (ArcheoObject)archeoObjectCol[x];
                SetArcheoDetail(archeoObj.GetCode(), archeoDetail);
            }
            catch (Exception)
            {
                Console.WriteLine("Fehler im Index. Element wird nicht gefunden, da die Bilder zwei Mal ");
                //throw;
            }
        }
Esempio n. 3
0
        internal void GetNextArcheObjFromCol(ArcheoCatalogDetail archeoDetail)
        {
            int x = archeoObjectCol.LastIndexOf(GetArcheoObjFromCol(archeoDetail.getCode())) + 1;

            try
            {
                ArcheoObject archeoObj = (ArcheoObject)archeoObjectCol[x];
                SetArcheoDetail(archeoObj.GetCode(), archeoDetail);
            }
            catch (Exception)
            {
                //TODO: Ausnahmefehler OutOIndex Warum erscheinen die Bilder zwei mal in der Liste?
                Console.WriteLine("Fehler im Index. Element wird nicht gefunden, da die Bilder zwei Mal ");
                //throw;
            }
        }
Esempio n. 4
0
        private void SetArcheoDetail(string code, ArcheoCatalogDetail archeoDetail)
        {
            ArcheoObject archeoObj = GetArcheoObjFromCol(code);

            //Todo: Select das Element mit dem Code, better
            archeoDetail.setTitle(archeoObj.GetTitle());
            archeoDetail.setCode(archeoObj.GetCode());
            archeoDetail.setWidth(archeoObj.GetWidth().ToString());
            archeoDetail.setHeight(archeoObj.GetHeight().ToString());
            archeoDetail.setDepth(archeoObj.GetDepth().ToString());
            archeoDetail.setDescription(archeoObj.GetDescription());
            archeoDetail.setCoordinate(archeoObj.GetCoordinate());
            archeoDetail.setParticularities(archeoObj.GetParticularities());
            archeoDetail.setTypeOfBuild(archeoObj.GetTypeOfBuild());
            archeoDetail.setTypeOfCoordinate(archeoObj.GetTypeOfCoordinate());
            archeoDetail.SetPictureBox(archeoObj.GetImagelink());
            archeoDetail.setImageLink(archeoObj.GetImagelink());

            archeoDetail.Show();
            archeoDetail.BringToFront();
            archeoDetail.Focus();
            archeoDetail.Activate();
        }
Esempio n. 5
0
 internal void GetArcheObjFromColByPath(ArcheoCatalogDetail archeoDetail)
 {
     for (int i = 0; i < archeoObjectCol.Count; i++)
     {
     }
 }