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