private void buttonApplyRouteFile_Click(object sender, EventArgs e) { if (MapRoutes == null) { alert($"No MapRoutes. Either load from file or get from Map Provider."); return; } if (MapTransform == null) { alert($"No MapTransform is loaded."); return; } Cursor.Current = Cursors.WaitCursor; try { if (!SimioObjectHelpers.BuildSimioFacilityObjectsFromMapRoutes(DesignContext, MapRoutes, MapTransform, out string explanation)) { alert($"Cannot Build Facility Objects from MapRoutes={MapRoutes}. Err={explanation}"); return; } } finally { Cursor.Current = Cursors.WaitCursor; } }
private void buttonGoogleApplyRoute_Click(object sender, EventArgs e) { if (!SimioObjectHelpers.BuildSimioFacilityObjectsFromMapRoute(DesignContext, MapRoute, MapTransform, out string explanation)) { alert($"Cannot Build Simio Objects. Err={explanation}"); } }