/// <summary> /// Displays a modal dialog prompting the user to choose the <see cref="Color" /> they wish to use next /// </summary> /// <returns>The selected color as a<see cref="Color"/></returns> private static Color GetColorFromUser() { // Use AutoCAD's built-in ColorDialog var colorDialog = new ColorDialog(); colorDialog.ShowModal(); return colorDialog.Color; }