コード例 #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);
        }
コード例 #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();
		}
コード例 #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();
        }