Partager via


IDialogVisualizerService Interface

Definition

Provides methods that a visualizer can call to display System.Windows forms, dialogs, and controls.

public interface class IDialogVisualizerService
public interface class IDialogVisualizerService
__interface IDialogVisualizerService
public interface IDialogVisualizerService
type IDialogVisualizerService = interface
Public Interface IDialogVisualizerService

Examples

public class DebuggerSide : DialogDebuggerVisualizer  
{  
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)  
   {  
      ColorDialog myDialog = new ColorDialog();  
      windowService.ShowDialog(myDialog);  
   }  
// Other class methods ommitted for clarity.  
}  
public class DebuggerSide : DialogDebuggerVisualizer
{
    override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
    {
        ColorDialog myDialog = new ColorDialog();
        windowService.ShowDialog(myDialog);
    }
    // Other class methods omitted for clarity.  
}

Remarks

IDialogVisualizerService provides methods that a visualizer can call to display System.Windows forms, dialogs, and controls.

Methods

ShowDialog(CommonDialog)

Displays a dialog that derives from System.Windows.Forms.CommonDialog.

ShowDialog(Control)

Displays any Windows Forms control derived from System.Windows.Forms.Control.

ShowDialog(Form)

Displays a Windows Form derived from System.Windows.Forms.Form.

Applies to