© 2010 Autodesk
Introduction to Revit 2011 API
Lab - Task Dialog
Dialog Sampler
§
§
§
§
§
§
§
§
<CS>
    //' (0) create an instance of task dialog to set more options.
    TaskDialog myDialog = new TaskDialog("Revit UI Labs - Task Dialog Options");
        
    //' (1) set the main area. these appear at the upper portion of the dialog.
         //'
    myDialog.MainIcon = TaskDialogIcon.TaskDialogIconWarning;
    //' or TaskDialogIcon.TaskDialogIconNone.
    myDialog.MainInstruction = "Main instruction: This is Revit UI Lab 3 Task Dialog";
    myDialog.MainContent = "Main content: You can add detailed description here.";
        
    if (stepByStep) myDialog.Show();
</CS>