using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Revit.SDK.Samples.PathOfTravelCreation.CS { /// /// Form presented to the user to fill in the options to control the path of travel creation. /// public partial class CreateForm : System.Windows.Forms.Form { PathCreateOptions m_createOption; /// /// Constructor /// public CreateForm() { InitializeComponent(); radioButton1.Checked = true; m_createOption = PathCreateOptions.SingleRoomCornersToSingleDoor; } /// /// The option for creating Path of Travel. /// public PathCreateOptions PathCreateOption { get { return m_createOption; } } /// /// Set the CreateOptions.SingleRoomCornersToSingleDoor option. /// /// The sender. /// The event arg. private void radioButton1_CheckedChanged(object sender, EventArgs e) { m_createOption = PathCreateOptions.SingleRoomCornersToSingleDoor; } /// /// Set the CreateOptions.AllRoomCenterToSingleDoor option. /// /// The sender. /// The event arg. private void radioButton2_CheckedChanged(object sender, EventArgs e) { m_createOption = PathCreateOptions.AllRoomCenterToSingleDoor; } /// /// Set the CreateOptions.AllRoomCornersToAllDoors option. /// /// The sender. /// The event arg. private void radioButton3_CheckedChanged(object sender, EventArgs e) { m_createOption = PathCreateOptions.AllRoomCornersToAllDoors; } } }