Esempio n. 1
0
        /// <summary>
        /// Attach the TextBox control to the dialog object
        /// </summary>
        /// <param name="dialog">Target dialog</param>
        internal override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogTextBox.Attach: dialog parameter can not be null");

            // Add a text entry control
            dialog.AddEditBox(this.Id, this.Text);

            // Set to local instance in order to gate access to same.
            customizedDialog = dialog;

            // Sync unmanaged properties with managed properties
            SyncUnmanagedProperties();
        }
		/// <summary>
		/// Attach the TextBox control to the dialog object
		/// </summary>
		/// <param name="dialog">Target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogTextBox.Attach: dialog parameter can not be null");

			// Add a text entry control
			dialog.AddEditBox(this.Id, this.Text);

			// Set to local instance in order to gate access to same.
			customizedDialog = dialog;

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();

			Closed = false;
		}