<CS>
TaskDialog
houseDialog = new TaskDialog("Revit UI Labs - Create House
Dialog");
houseDialog.MainInstruction = "Create a house";
houseDialog.MainContent =
"There are two options to create a house.";
houseDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink1, "Interactive", "You will pick two corners of rectangular
footprint of a house, and choose where you want to add a front door.");
houseDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink2, "Automatic", "This is will automatically place a house
with a default settings.");
houseDialog.CommonButtons = TaskDialogCommonButtons.Cancel;
houseDialog.DefaultButton = TaskDialogResult.CommandLink1;
//' show the
dialog to the user.
TaskDialogResult
res = houseDialog.Show();
</CS>