internal void ShowArcheoCatalogDetail(string code) { ArcheoCatalogDetail archeoDetail = new ArcheoCatalogDetail(this, code); SetArcheoDetail(code, archeoDetail); //throw new NotImplementedException(); }
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; } }
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; } }
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(); }
internal void GetArcheObjFromColByPath(ArcheoCatalogDetail archeoDetail) { for (int i = 0; i < archeoObjectCol.Count; i++) { } }