Example #1
0
 // Constructors
 public TaskDialog()
 {
     // Initialize various data structs
     controls     = new DialogControlCollection <TaskDialogControl>(this);
     buttons      = new List <TaskDialogButtonBase>();
     radioButtons = new List <TaskDialogButtonBase>();
     commandLinks = new List <TaskDialogButtonBase>();
 }
Example #2
0
        /// <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);
        }
Example #3
0
        // 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>();
        }
Example #4
0
 protected CommonFileDialog()
 {
     fileNames = new Collection <string>();
     controls  = new DialogControlCollection <CommonFileDialogControl>(this);
 }