public ArcheoObjectViewCtl(ArcheologCatalogList archeologCatalogList) { this.archeoObjectCtl = new ArcheoObjectCtl(); this.archeoConfigTypeOfBuild = new ArcheoConfigParameter(paramTypeOfBuild); this.archeoConfigRockType = new ArcheoConfigParameter(paramRockType); this.archeologCatalogList = archeologCatalogList; this.archeologCatalogDetail = new ArcheologCatalogDetail(this); this.archeologCatalogConfig = new ArcheologCatalogConfig(this); this.archeologCatalogDetail.Visible = false; }
// TODO: Speichern des geladenen Objekts anfordern, oder automatisch speichern. internal void CreateArcheoObjectDetailView(string archeoObjectId) { if (this.archeologCatalogDetail.IsDisposed) { this.archeologCatalogDetail = new ArcheologCatalogDetail(this); } this.archeologCatalogDetail.FillComboFields(); if (archeoObjectId != null) { ArcheoObject archeoObject = this.archeoObjectCtl.GetArcheoObject(archeoObjectId); this.archeologCatalogDetail.SetArcheoObjectInForm(archeoObject); this.archeologCatalogDetail.Activate(); this.archeologCatalogDetail.Visible = true; this.archeologCatalogDetail.Show(); } else { this.archeologCatalogDetail.ClearArcheoObjectInForm(this.archeoObjectCtl.GetRandomId()); this.archeologCatalogDetail.Show(); } }