public void ShowProperties(object model) { if (model == null) { return; } try { Z.ClearRightRegion(regionManager); if (model == null) { return; } IRegion rightRegion = this.regionManager.Regions[RegionNames.RightRegion]; if (rightRegion == null) { return; } object view = GetView(model); if (view == null) { return; } rightRegion.Add(view); } catch (Exception ex) { Z.Notify(new Notification { Title = "Z-Metadata", Content = ExceptionsHandling.GetErrorText(ex) }); } }
private void RefreshInfoBases() { this.infoBases.Clear(); try { InfoBase system = dataService.GetSystemInfoBase(); this.InfoBases.Add(system); foreach (InfoBase infoBase in dataService.GetInfoBases()) { this.infoBases.Add(infoBase); } } catch (Exception ex) { Z.Notify(new Notification { Title = "Z-Metadata", Content = ExceptionsHandling.GetErrorText(ex) }); } }