private void OnGridAreaRectChanged(object sender, Infragistics.RectChangedEventArgs e) { this.ViewModel = DataContext as HospitalFloorPlanViewModel; this.MapProjector.InitializeMap(this.geoMap); if (!NavigationApp.Current.IsInDesingMode()) //(DesignerProperties.GetIsInDesignMode(this)) { var shapefilesPath = DataStorageProvider.ShapefilesPath; ShapeFileRooms = new ShapefileConverter(); ShapeFileRooms.ImportCompleted += OnShapefileImportCompleted; ShapeFileRooms.ShapefileSource = new Uri(shapefilesPath + "custom/hospital/rooms.shp", UriKind.RelativeOrAbsolute); ShapeFileRooms.DatabaseSource = new Uri(shapefilesPath + "custom/hospital/rooms.dbf", UriKind.RelativeOrAbsolute); ShapeFileBeds = new ShapefileConverter(); ShapeFileBeds.ImportCompleted += OnShapefileImportCompleted; ShapeFileBeds.ShapefileSource = new Uri(shapefilesPath + "custom/hospital/beds.shp", UriKind.RelativeOrAbsolute); ShapeFileBeds.DatabaseSource = new Uri(shapefilesPath + "custom/hospital/beds.dbf", UriKind.RelativeOrAbsolute); ShapeFileItems = new ShapefileConverter(); ShapeFileItems.ImportCompleted += OnShapefileImportCompleted; ShapeFileItems.ShapefileSource = new Uri(shapefilesPath + "custom/hospital/items.shp", UriKind.RelativeOrAbsolute); ShapeFileItems.DatabaseSource = new Uri(shapefilesPath + "custom/hospital/items.dbf", UriKind.RelativeOrAbsolute); } }
private void weather_live_line_WindowRectChanged(object sender, Infragistics.RectChangedEventArgs e) { if (IsZoombarChanging) { return; } try { IsZoombarChanging = true; Range newZoombarRange = new Range { Minimum = e.NewRect.X, Maximum = e.NewRect.X + e.NewRect.Width }; if (this.xmZoombar != null) { this.xmZoombar.Range = newZoombarRange; } } finally { IsZoombarChanging = false; } }
private void rs131pg_live_line_WindowRectChanged(object sender, Infragistics.RectChangedEventArgs e) { }