/// <summary> Raises the chain level event. </summary> /// /// <param name="sender"> Source of the event. </param> /// <param name="e"> Event information to send to registered event handlers. </param> private void OnChainLevel(object sender, EventArgs e) { const int Level = 5; UtilityService.Initialize(); UtilityService.DrawBlock(new Point3D(0, 0, 0), new Point3D(10, 10, 0), -0.5, Level); var chains = ChainManager.ChainAll(true, false, ViewManager.CPlane, ChainDirectionType.Clockwise, Level); if (!chains.Any()) { UtilityService.ShowMessage("No chains returned"); } if (this.Contour(chains)) { UtilityService.FitScreen(); } }