/// <summary> Raises the chain all selected event. </summary> /// /// <param name="sender"> Source of the event. </param> /// <param name="e"> Event information to send to registered event handlers. </param> private void OnChainAllSelected(object sender, EventArgs e) { UtilityService.Initialize(); UtilityService.DrawPolygon(); SelectionManager.SelectAllGeometry(); var chains = ChainManager.ChainAllSelected(true); if (!chains.Any()) { UtilityService.ShowMessage("No chains returned"); return; } if (this.Contour(chains)) { UtilityService.FitScreen(); } }