// Constructors public TaskDialog() { // Initialize various data structs controls = new DialogControlCollection <TaskDialogControl>(this); buttons = new List <TaskDialogButtonBase>(); radioButtons = new List <TaskDialogButtonBase>(); commandLinks = new List <TaskDialogButtonBase>(); }
/// <summary> /// Creates a new instance of this class. /// </summary> protected CommonFileDialog() { if (!Helpers.RunningOnVista) { throw new PlatformNotSupportedException( "Common File Dialog requires Windows Vista or later."); } fileNames = new Collection <string>(); filters = new CommonFileDialogFilterCollection(); controls = new DialogControlCollection <CommonFileDialogControl>(this); }
// Constructors. public TaskDialog() { if (!Helpers.RunningOnVista) { throw new PlatformNotSupportedException("Task Dialog requires Windows Vista or later."); } // Initialize various data structs. controls = new DialogControlCollection <TaskDialogControl>(this); buttons = new List <TaskDialogButtonBase>(); radioButtons = new List <TaskDialogButtonBase>(); commandLinks = new List <TaskDialogButtonBase>(); }
protected CommonFileDialog() { fileNames = new Collection <string>(); controls = new DialogControlCollection <CommonFileDialogControl>(this); }