Ejemplo n.º 1
0
        public DynamoOpenFileDialog(DynamoViewModel model)
        {
            this.model = model;
            _dialog    = new NativeFileOpenDialog();
            IFileDialogCustomize customize = (IFileDialogCustomize)_dialog;

            customize.AddCheckButton(RunManualCheckboxId,
                                     Dynamo.Wpf.Properties.Resources.FileDialogManualMode,
                                     model.PreferenceSettings.OpenFileInManualExecutionMode);
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Attach the CheckButton control to the dialog object.
		/// </summary>
		/// <param name="dialog">the target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogCheckBox.Attach: dialog parameter can not be null");

			// Add a check button control
			dialog.AddCheckButton(this.Id, this.Text, this.isChecked);

			// Make this control prominent if needed
			if (IsProminent) { dialog.MakeProminent(this.Id); }

			// Make sure this property is set
			ApplyPropertyChange("IsChecked");

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
Ejemplo n.º 3
0
        /// <summary>
        /// Attach the CheckButton control to the dialog object.
        /// </summary>
        /// <param name="dialog">the target dialog</param>
        internal override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogCheckBox.Attach: dialog parameter can not be null");

            // Add a check button control
            dialog.AddCheckButton(this.Id, this.Text, this.isChecked);

            // Make this control prominent if needed
            if (IsProminent)
            {
                dialog.MakeProminent(this.Id);
            }

            // Make sure this property is set
            ApplyPropertyChange("IsChecked");

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