internal override void SetDialogProperties(Ookii.Dialogs.Wpf.Interop.IFileDialog dialog) { base.SetDialogProperties(dialog); if (_showReadOnly) { Ookii.Dialogs.Wpf.Interop.IFileDialogCustomize customize = (Ookii.Dialogs.Wpf.Interop.IFileDialogCustomize)dialog; customize.EnableOpenDropDown(_openDropDownId); customize.AddControlItem(_openDropDownId, _openItemId, ComDlgResources.LoadString(ComDlgResources.ComDlgResourceId.OpenButton)); customize.AddControlItem(_openDropDownId, _readOnlyItemId, ComDlgResources.LoadString(ComDlgResources.ComDlgResourceId.ReadOnly)); } }
internal override void SetDialogProperties(IFileDialog dialog) { base.SetDialogProperties(dialog); uint cookie; var events = new TraceLabSaveAsDialogEvents(this); dialog.Advise(events, out cookie); Ookii.Dialogs.Wpf.Interop.IFileDialogCustomize customize = (Ookii.Dialogs.Wpf.Interop.IFileDialogCustomize)dialog; customize.StartVisualGroup(_configVisualGroupId, "Referenced files:"); customize.AddComboBox(_comboBoxId); customize.AddControlItem(_comboBoxId, _ignoreId, ignoreLabel); customize.AddControlItem(_comboBoxId, _copyId, copyLabel); customize.AddControlItem(_comboBoxId, _copyOverwriteId, copyOverwriteLabel); customize.AddControlItem(_comboBoxId, _keepReferenceId, determinePathsLabel); customize.SetSelectedControlItem(_comboBoxId, _ignoreId); //select default customize.EndVisualGroup(); customize.AddText(_helpTextId, ignoreDescription); }